browserstack / browserstack-runner

MIT License
130 stars 61 forks source link

Freezing when using absolute external paths #214

Closed alvarotrigo closed 5 years ago

alvarotrigo commented 5 years ago

The test won't run at all when loading files from external paths in the .html file. For example:

<link rel="stylesheet" type="text/css" href="http://code.jquery.com/qunit/qunit-1.18.0.css">

Expected Behavior

It should allow them and not freeze.

Actual Behavior

It doesn't allow them. It freezes and shows the following message:

Launching 1 worker(s) for 1 run(s).

But never actually runs.

Steps to Reproduce the Problem

<!DOCTYPE html>
<html>
    <head>
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/qunit/qunit-1.18.0.css">
        <script type="text/javascript">
             function isEven(value) {
                 return value % 2 === 0;
             }

        </script>
    </head>
    <body>
        <div id="qunit"></div>
        <div id="qunit-fixture"></div>

        <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
        <script type="text/javascript" src="https://code.jquery.com/qunit/qunit-2.5.1.js"></script>

          <script type="text/javascript">
            QUnit.test("isEven returns true for even numbers", function(assert){
                assert.ok(isEven(10), "10 is even");
            });
        </script>
    </body>
</html>

browserstack.json

{
    "test_framework" : "qunit",
    "test_path": "pepe.html",
    "browsers": [
        "firefox_previous"
    ]
}

Platform details

  1. browserstack-runner version: latest
  2. node version: v10.13.0
  3. os type and version: Mac OS X 10.14.3
alvarotrigo commented 5 years ago

Oh, just realised it works but it takes much longer... Can you please remove this issue?