Backed out changeset a7e7d8531816 (bug 1598205) for having the wrong bug number
authorNarcis Beleuzu <nbeleuzu@mozilla.com>
Fri, 13 Dec 2019 09:59:55 +0200
changeset 506834 99f723c1bd74b33395fcc6f7ad2c8863413aa100
parent 506833 d83253521421ba6708d01f3b931fb54685831ab6
child 506835 bac3f4d0f7adda7c1aeadf3b03cfc16d86ef2079
push id36913
push useropoprus@mozilla.com
push dateFri, 13 Dec 2019 16:53:24 +0000
treeherdermozilla-central@1ed684598bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1598205
milestone73.0a1
backs outa7e7d853181688ac74f85de38745bfe0156dc222
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset a7e7d8531816 (bug 1598205) for having the wrong bug number
devtools/client/webconsole/test/browser/browser_webconsole_filter_navigation_marker.js
--- a/devtools/client/webconsole/test/browser/browser_webconsole_filter_navigation_marker.js
+++ b/devtools/client/webconsole/test/browser/browser_webconsole_filter_navigation_marker.js
@@ -9,49 +9,35 @@ const TEST_URI = `data:text/html;charset
   <p>Web Console test for navigation marker filtering.</p>
   <script>console.log("hello " + "world");</script>`;
 
 add_task(async function() {
   // Enable persist log
   await pushPref("devtools.webconsole.persistlog", true);
 
   const hud = await openNewTabAndConsole(TEST_URI);
-  await waitFor(
-    () => findMessage(hud, "hello world"),
-    "Wait for log message to be rendered"
-  );
-  ok(true, "Log message rendered");
+  await waitFor(() => findMessage(hud, "hello world"));
 
   info("Reload the page");
+  const onInitMessage = waitForMessage(hud, "hello world");
   ContentTask.spawn(gBrowser.selectedBrowser, null, () => {
     content.location.reload();
   });
+  await onInitMessage;
 
   // Wait for the navigation message to be displayed.
-  await waitFor(
-    () => findMessage(hud, "Navigated to"),
-    "Wait for navigation message to be rendered"
-  );
-
-  // Wait for 2 hellow world messages to be displayed.
-  await waitFor(
-    () => findMessages(hud, "hello world").length == 2,
-    "Wait for log message to be rendered after navigation"
-  );
+  await waitFor(() => findMessage(hud, "Navigated to"));
 
   info("disable all filters and set a text filter that doesn't match anything");
   await setFilterState(hud, {
     error: false,
     warn: false,
     log: false,
     info: false,
     text: "qwqwqwqwqwqw",
   });
 
-  await waitFor(
-    () => !findMessage(hud, "hello world"),
-    "Wait for the log messages to be hidden"
-  );
+  await waitFor(() => !findMessage(hud, "hello world"));
   ok(
     findMessage(hud, "Navigated to"),
     "The navigation marker is still visible"
   );
 });