diff options
| author | Jez Ng | 2012-09-08 11:32:25 -0400 |
|---|---|---|
| committer | Jez Ng | 2012-09-08 11:32:25 -0400 |
| commit | a9ff5686d8a749f220b3a646a8db1275949d8bb1 (patch) | |
| tree | 2859cf8eb5757830b11798d3ab3aaab2c766235e | |
| parent | 88da24bf5a531d546b84d9f349e2bf4f62da23be (diff) | |
| download | vimium-a9ff5686d8a749f220b3a646a8db1275949d8bb1.tar.bz2 | |
Fix formatting.
| -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 |
