diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-09 12:41:56 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-09 12:41:56 +0400 |
commit | 774611a1b63c9d2e4dca67810ee8c20f442b7611 (patch) | |
tree | 93a4134504fee1add1fa28ec647544cf4d4ca3f2 /tests/javascript/testrunner.js | |
parent | a3e0c5d2502becc3ca2977d32ac6d9d1911c1ca5 (diff) |
refs #4996 many new tests and bugfixes, worked around some JSLint regexp issues and disabled the whitespace check which makes no sense to me. The tests do now run again in PhantomJS but report a lot of failures and I have not looked yet into it.
Diffstat (limited to 'tests/javascript/testrunner.js')
-rw-r--r-- | tests/javascript/testrunner.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/javascript/testrunner.js b/tests/javascript/testrunner.js index 61ca183f97..5b333a8a29 100644 --- a/tests/javascript/testrunner.js +++ b/tests/javascript/testrunner.js @@ -22,10 +22,10 @@ // IN THE SOFTWARE var fs = require("fs"); -var url = 'http://localhost/tests/javascript'; +var url = 'http://localhost/tests/javascript/'; function printError(message) { - fs.write("/dev/stderr", message + "\n", "w"); + fs.write("/dev/stderr", message + "\n", "w"); } var page = require("webpage").create(); @@ -38,7 +38,7 @@ page.onResourceReceived = function() { page.evaluate(function() { if (!window.QUnit || window.phantomAttached) return; - QUnit.config.done.push(function(obj) { + QUnit.done(function(obj) { console.log("Tests passed: " + obj.passed); console.log("Tests failed: " + obj.failed); console.log("Total tests: " + obj.total); @@ -47,6 +47,8 @@ page.onResourceReceived = function() { window.phantomResults = obj; }); + window.phantomAttached = true; + QUnit.log(function(obj) { if (!obj.result) { var errorMessage = "Test failed in module " + obj.module + ": '" + obj.name + "' \nError: " + obj.message; @@ -64,8 +66,6 @@ page.onResourceReceived = function() { console.log(errorMessage); } }); - - window.phantomAttached = true; }); } |