From a9ff5686d8a749f220b3a646a8db1275949d8bb1 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sat, 8 Sep 2012 11:32:25 -0400 Subject: Fix formatting. --- tests/dom_tests/phantom_runner.coffee | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3