Bug 1271184 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js . r=bgrins
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Fri, 10 Jun 2016 23:11:48 +0200
changeset 301713 511d102e76439b864de39dc6b9f7fff3155bfb2a
parent 301712 7281878967623e8bdb2e0dda04b1babc8c256dc1
child 301714 dac7420ef19d2039b2465bb929b3e7e316d6421e
push id30340
push usercbook@mozilla.com
push dateWed, 15 Jun 2016 05:21:46 +0000
treeherdermozilla-central@53f5b5c289fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1271184
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1271184 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js . r=bgrins MozReview-Commit-ID: F3OSrcDYEbO
devtools/client/webconsole/test/browser_webconsole_bug_613642_prune_scroll.js
--- a/devtools/client/webconsole/test/browser_webconsole_bug_613642_prune_scroll.js
+++ b/devtools/client/webconsole/test/browser_webconsole_bug_613642_prune_scroll.js
@@ -17,19 +17,21 @@ add_task(function* () {
 
   hud.jsterm.clearOutput();
 
   let outputNode = hud.outputNode;
 
   Services.prefs.setIntPref("devtools.hud.loglimit.console", 140);
   let scrollBoxElement = hud.ui.outputWrapper;
 
-  for (let i = 0; i < 150; i++) {
-    content.console.log("test message " + i);
-  }
+  ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
+    for (let i = 0; i < 150; i++) {
+      content.console.log("test message " + i);
+    }
+  });
 
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: "test message 149",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     }],