Bug 1256791 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_navigation_marker.js. r=jlast, a=test-only
authorMichael Kohler <mkohler@picobudget.com>
Sat, 07 May 2016 11:35:00 +0200
changeset 333112 35f1e2eeab310bddceae79015b536aee4037ae06
parent 333111 7a10c57f0f505c60ac90b66429e01e5eb3cf90b3
child 333113 12f9bd2adb0e89754c39d2d5c8688b1bc818775a
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast, test-only
bugs1256791
milestone48.0a2
Bug 1256791 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_navigation_marker.js. r=jlast, a=test-only MozReview-Commit-ID: BnVLQMdxXhd
devtools/client/webconsole/test/browser_console_navigation_marker.js
--- a/devtools/client/webconsole/test/browser_console_navigation_marker.js
+++ b/devtools/client/webconsole/test/browser_console_navigation_marker.js
@@ -34,29 +34,35 @@ add_task(function* () {
 
   hud = null;
 });
 
 function consoleOpened() {
   ok(hud, "Web Console opened");
 
   hud.jsterm.clearOutput();
-  content.console.log("foobarz1");
+
+  ContentTask.spawn(gBrowser.selectedBrowser, null, function* () {
+    content.console.log("foobarz1");
+  });
+
   return waitForMessages({
     webconsole: hud,
     messages: [{
       text: "foobarz1",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     }],
   });
 }
 
 function onReload() {
-  content.console.log("foobarz2");
+  ContentTask.spawn(gBrowser.selectedBrowser, null, function* () {
+    content.console.log("foobarz2");
+  });
 
   return waitForMessages({
     webconsole: hud,
     messages: [{
       name: "page reload",
       text: "test-console.html",
       category: CATEGORY_NETWORK,
       severity: SEVERITY_LOG,