Bug 1280520 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js. r=bgrins, a=test-only
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Fri, 17 Jun 2016 17:23:44 +0200
changeset 341699 106d43cbf4a230c59a6eb66b7538b983c257fd0d
parent 341698 897e5f19909b33e834957e48c62e2a0d5543f1e4
child 341700 bc5cb981f4b84403b49aa5b28c00d20a17db3c1f
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
bugs1280520
milestone49.0a2
Bug 1280520 - Fix dead CPOW intermittent in browser_webconsole_bug_613642_prune_scroll.js. r=bgrins, a=test-only MozReview-Commit-ID: 5hlcANi1exr
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
@@ -50,17 +50,19 @@ add_task(function* () {
   msgNode.scrollIntoView(false);
 
   isnot(scrollBoxElement.scrollTop, oldScrollTop,
         "scroll location updated (scrolled to message)");
 
   oldScrollTop = scrollBoxElement.scrollTop;
 
   // add a message
-  content.console.log("hello world");
+  ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
+    content.console.log("hello world");
+  });
 
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: "hello world",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     }],