diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/phantom_runner.coffee | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/dom_tests/phantom_runner.coffee b/tests/dom_tests/phantom_runner.coffee index f0f2b128..9036b8f3 100644 --- a/tests/dom_tests/phantom_runner.coffee +++ b/tests/dom_tests/phantom_runner.coffee @@ -8,7 +8,7 @@ page.viewportSize = height: 600 page.onConsoleMessage = (msg) -> - console.log msg + console.log msg system = require 'system' fs = require 'fs' @@ -18,15 +18,15 @@ pathParts[pathParts.length - 1] = '' dirname = pathParts.join(fs.separator) page.open dirname + 'dom_tests.html', (status) -> - if status != 'success' - console.log 'Unable to load tests.' - phantom.exit 1 - - testsFailed = page.evaluate -> - Tests.run() - return Tests.testsFailed - - if testsFailed > 0 - phantom.exit 1 - else - phantom.exit 0 + if status != 'success' + console.log 'Unable to load tests.' + phantom.exit 1 + + testsFailed = page.evaluate -> + Tests.run() + return Tests.testsFailed + + if testsFailed > 0 + phantom.exit 1 + else + phantom.exit 0 |
