From 32af48e442a960b8c3f199f5ffad28a34590fcda Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Apr 2011 13:28:55 +0200 Subject: Reformatting to MoFo coding style --- tests/pagemod-test-helpers.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/pagemod-test-helpers.js') diff --git a/tests/pagemod-test-helpers.js b/tests/pagemod-test-helpers.js index 8621421..9980715 100644 --- a/tests/pagemod-test-helpers.js +++ b/tests/pagemod-test-helpers.js @@ -1,10 +1,10 @@ "use strict"; -const {Cc,Ci} = require("chrome"); - +const Cc = require("chrome").Cc; +const Ci = require("chrome").Ci; /** - * A helper function that creates a PageMod, then opens the specified URL - * and checks the effect of the page mod on 'onload' event via testCallback. + * A helper function that creates a PageMod, then opens the specified URL and + * checks the effect of the page mod on 'onload' event via testCallback. */ exports.testPageMod = function testPageMod(test, testURL, pageModOptions, testCallback, timeout) { @@ -20,7 +20,7 @@ exports.testPageMod = function testPageMod(test, testURL, pageModOptions, var browserWindow = wm.getMostRecentWindow("navigator:browser"); if (!browserWindow) { test.pass("page-mod tests: could not find the browser window, so " + - "will not run. Use -a firefox to run the pagemod tests.") + "will not run. Use -a firefox to run the pagemod tests."); return null; } @@ -44,7 +44,7 @@ exports.testPageMod = function testPageMod(test, testURL, pageModOptions, function onPageLoad() { b.removeEventListener("load", onPageLoad, true); testCallback(b.contentWindow.wrappedJSObject, function done() { - pageMods.forEach(function(mod) mod.destroy()); + pageMods.forEach(function(mod) {mod.destroy()}); // XXX leaks reported if we don't close the tab? tabBrowser.removeTab(newTab); test.done(); -- cgit