diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 13:28:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:47:40 +0200 |
commit | 55d9a312fbba91f1bcf5e3f3291b7bece8abb178 (patch) | |
tree | bb9ef165b425273da47aa000268395f87f26678e /tests/pagemod-test-helpers.js | |
parent | 34bbe8e7306a0d0ec014db7512788ed92c625d19 (diff) | |
download | bugzilla-triage-55d9a312fbba91f1bcf5e3f3291b7bece8abb178.tar.gz |
Reformatting to MoFo coding style
Diffstat (limited to 'tests/pagemod-test-helpers.js')
-rw-r--r-- | tests/pagemod-test-helpers.js | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |