From 50ce69640fd087ae254bd4638e2008d658b800f2 Mon Sep 17 00:00:00 2001 From: Brian Grinstead Date: Mon, 25 Jan 2016 16:07:51 -0800 Subject: [PATCH] Bug 1242716 - Get rid of CPOW usage in browser_webconsole_bug_585237_line_limit.js;r=linclark --- .../browser_webconsole_bug_585237_line_limit.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/devtools/client/webconsole/test/browser_webconsole_bug_585237_line_limit.js b/devtools/client/webconsole/test/browser_webconsole_bug_585237_line_limit.js index 57387473fbe..a3807be9d98 100644 --- a/devtools/client/webconsole/test/browser_webconsole_bug_585237_line_limit.js +++ b/devtools/client/webconsole/test/browser_webconsole_bug_585237_line_limit.js @@ -18,7 +18,6 @@ add_task(function* () { let hud = yield openConsole(); - let console = content.console; outputNode = hud.outputNode; hud.jsterm.clearOutput(); @@ -27,8 +26,10 @@ add_task(function* () { prefBranch.setIntPref("console", 20); for (let i = 0; i < 30; i++) { - // must change message to prevent repeats - console.log("foo #" + i); + yield ContentTask.spawn(gBrowser.selectedBrowser, i, function(i) { + // must change message to prevent repeats + content.console.log("foo #" + i); + }); } yield waitForMessages({ @@ -43,7 +44,9 @@ add_task(function* () { is(countMessageNodes(), 20, "there are 20 message nodes in the output " + "when the log limit is set to 20"); - console.log("bar bug585237"); + yield ContentTask.spawn(gBrowser.selectedBrowser, {}, function() { + content.console.log("bar bug585237"); + }); yield waitForMessages({ webconsole: hud, @@ -59,8 +62,10 @@ add_task(function* () { prefBranch.setIntPref("console", 30); for (let i = 0; i < 20; i++) { - // must change message to prevent repeats - console.log("boo #" + i); + yield ContentTask.spawn(gBrowser.selectedBrowser, i, function(i) { + // must change message to prevent repeats + content.console.log("boo #" + i); + }); } yield waitForMessages({