Bug 1271184 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js. r=bgrins, a=test-only
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Fri, 10 Jun 2016 23:11:48 +0200
changeset 341693 2325d1666f95509124ae589da37b42d5a5522126
parent 341692 4e748c85cb4247bbccdbff560196e9b65bbb6e99
child 341694 25bbebc01ba094f66d10183629a85bd85c897016
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs1271184
milestone49.0a2
Bug 1271184 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js. r=bgrins, a=test-only 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,
     }],