Bug 1177324 - Fix dead CPOW intermittent in browser_webconsole_live_filtering_of_message_types.js. r=bgrins, a=test-only
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Tue, 07 Jun 2016 22:47:06 +0200
changeset 339685 897e5f19909b33e834957e48c62e2a0d5543f1e4
parent 339684 5d89998e40c6e58ccc12045276e88aa7f67db3e4
child 339686 106d43cbf4a230c59a6eb66b7538b983c257fd0d
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs1177324
milestone49.0a2
Bug 1177324 - Fix dead CPOW intermittent in browser_webconsole_live_filtering_of_message_types.js. r=bgrins, a=test-only MozReview-Commit-ID: 69Nf9VwHoUq
devtools/client/webconsole/test/browser_webconsole_live_filtering_of_message_types.js
--- a/devtools/client/webconsole/test/browser_webconsole_live_filtering_of_message_types.js
+++ b/devtools/client/webconsole/test/browser_webconsole_live_filtering_of_message_types.js
@@ -10,21 +10,21 @@
 const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
                  "test/test-console.html";
 
 add_task(function* () {
   yield loadTab(TEST_URI);
   let hud = yield openConsole();
   hud.jsterm.clearOutput();
 
-  let console = content.console;
-
-  for (let i = 0; i < 50; i++) {
-    console.log("foobarz #" + i);
-  }
+  ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
+    for (let i = 0; i < 50; i++) {
+      content.console.log("foobarz #" + i);
+    }
+  });
 
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: "foobarz #49",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     }],