From 4aad52797c9ec43c30561f481f595be178f6ab94 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 6 Dec 2013 12:20:59 +0200 Subject: Use a space after function consistently. --- js/tests/unit/phantom.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/tests/unit/phantom.js') diff --git a/js/tests/unit/phantom.js b/js/tests/unit/phantom.js index c584c5a35..cf9da2537 100644 --- a/js/tests/unit/phantom.js +++ b/js/tests/unit/phantom.js @@ -22,7 +22,7 @@ } // These methods connect QUnit to PhantomJS. - QUnit.log = function(obj) { + QUnit.log = function (obj) { // What is this I don’t even if (obj.message === '[object Object], undefined:undefined') { return } // Parse some stuff before sending it. @@ -32,15 +32,15 @@ sendMessage('qunit.log', obj.result, actual, expected, obj.message, obj.source) } - QUnit.testStart = function(obj) { + QUnit.testStart = function (obj) { sendMessage('qunit.testStart', obj.name) } - QUnit.testDone = function(obj) { + QUnit.testDone = function (obj) { sendMessage('qunit.testDone', obj.name, obj.failed, obj.passed, obj.total) } - QUnit.moduleStart = function(obj) { + QUnit.moduleStart = function (obj) { sendMessage('qunit.moduleStart', obj.name) } -- cgit v1.2.3 From eca8ff380388c1187bc2c86e0ae7fa80aa33111e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 18 Sep 2013 19:50:02 +0300 Subject: Use single quotes consistently. --- js/tests/unit/phantom.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js/tests/unit/phantom.js') diff --git a/js/tests/unit/phantom.js b/js/tests/unit/phantom.js index cf9da2537..bf480ecaa 100644 --- a/js/tests/unit/phantom.js +++ b/js/tests/unit/phantom.js @@ -2,7 +2,7 @@ * grunt-contrib-qunit * http://gruntjs.com/ * - * Copyright (c) 2013 "Cowboy" Ben Alman, contributors + * Copyright (c) 2013 'Cowboy' Ben Alman, contributors * Licensed under the MIT license. */ @@ -46,23 +46,23 @@ QUnit.begin = function () { sendMessage('qunit.begin') - console.log("Starting test suite") - console.log("================================================\n") + console.log('Starting test suite') + console.log('================================================\n') } QUnit.moduleDone = function (opts) { if (opts.failed === 0) { - console.log("\r\u2714 All tests passed in '" + opts.name + "' module") + console.log('\r\u2714 All tests passed in "' + opts.name + '" module') } else { - console.log("\u2716 " + opts.failed + " tests failed in '" + opts.name + "' module") + console.log('\u2716 ' + opts.failed + ' tests failed in "' + opts.name + '" module') } sendMessage('qunit.moduleDone', opts.name, opts.failed, opts.passed, opts.total) } QUnit.done = function (opts) { - console.log("\n================================================") - console.log("Tests completed in " + opts.runtime + " milliseconds") - console.log(opts.passed + " tests of " + opts.total + " passed, " + opts.failed + " failed.") + console.log('\n================================================') + console.log('Tests completed in ' + opts.runtime + ' milliseconds') + console.log(opts.passed + ' tests of ' + opts.total + ' passed, ' + opts.failed + ' failed.') sendMessage('qunit.done', opts.failed, opts.passed, opts.total, opts.runtime) } -- cgit v1.2.3