Bug 1125526 - Wait for output from executed method in browser_webconsole_assert.js before asserting on number of messages. r=past, a=test-only
authorSami Jaktholm <sjakthol@outlook.com>
Sat, 14 Feb 2015 09:52:50 +0200
changeset 249783 c88d58615436d8c90dd5304ab7b382c569be68ef
parent 249782 9fcec67bd0f68a0a9dbd3b87fcd3dc268a39ab05
child 249784 3c1a3493ac003fc575aaf959d9ce68062b344334
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast, test-only
bugs1125526
milestone37.0a2
Bug 1125526 - Wait for output from executed method in browser_webconsole_assert.js before asserting on number of messages. r=past, a=test-only
browser/devtools/webconsole/test/browser_webconsole_assert.js
--- a/browser/devtools/webconsole/test/browser_webconsole_assert.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_assert.js
@@ -15,16 +15,21 @@ let test = asyncTest(function* () {
 });
 
 function consoleOpened(hud) {
   hud.jsterm.execute("test()");
 
   return waitForMessages({
     webconsole: hud,
     messages: [{
+      text: "undefined",
+      category: CATEGORY_OUTPUT,
+      severity: SEVERITY_LOG,
+    },
+    {
       text: "start",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     },
     {
       text: "false assert",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_ERROR,