diff --git a/.jshintrc b/.jshintrc index 604e4aac04c1fa97affb0778328c62f722d5feb2..ef71670d231fb7785aadb929c05be8ce97641a7f 100644 --- a/.jshintrc +++ b/.jshintrc @@ -17,5 +17,8 @@ "esnext": true, "eqnull": true, "browser": true, - "worker": true + "worker": true, + "globals": { + "JSON": false + } } diff --git a/package.json b/package.json index a8e396d231e8efb8a2daf4d7463c573646d8cc4c..d3dd61ae59f95fd2280500391ec3b29c1922454f 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "devDependencies": { "bower": "1.3.8", "chai": "1.10.0", - "jshint": "2.5.2", + "jshint": "2.8.0", "mocha-phantomjs": "3.5.2", "mocha": "2.1.0", - "phantomjs": "1.9.13" + "phantomjs": "1.9.19" }, "files" : [ "LICENSE", diff --git a/script/phantomjs b/script/phantomjs index 2689f41ad5002f1e2a44dee186508214b39d0a57..757e7ea3d9aa8f3ef6feb726941a580c07eeb8f8 100755 --- a/script/phantomjs +++ b/script/phantomjs @@ -12,5 +12,16 @@ node ./script/server $port &>/dev/null & server_pid=$! trap "kill $server_pid" INT EXIT -node ./node_modules/.bin/mocha-phantomjs -s localToRemoteUrlAccessEnabled=true -s webSecurityEnabled=false "http://localhost:$port/test/test.html" -node ./node_modules/.bin/mocha-phantomjs -s localToRemoteUrlAccessEnabled=true -s webSecurityEnabled=false "http://localhost:$port/test/test-worker.html" +STATUS=0 + +run() { + node ./node_modules/.bin/mocha-phantomjs \ + -s localToRemoteUrlAccessEnabled=true \ + -s webSecurityEnabled=false \ + "$@" || STATUS=$? +} + +run "http://localhost:$port/" +run "http://localhost:$port/test/test-worker.html" + +exit $STATUS diff --git a/script/saucelabs b/script/saucelabs index 98d9a937677cebc54b4ca0bfbf94d19349121cb7..a47e36a51666b446a1eb7e0bdb7696f19209f742 100755 --- a/script/saucelabs +++ b/script/saucelabs @@ -25,7 +25,7 @@ job="$(./script/saucelabs-api --raw "js-tests" < Fetch Worker Tests - +
- + - + + - - - - + + +