Bug 1223368 - Followup: fix browser_inspector_search-01/06.js failures on a CLOSED TREE. r=me
authorTim Nguyen <ntim.bugs@gmail.com>
Sat, 11 May 2019 21:00:17 +0200
changeset 532340 4440662cd0177f3fc3200cff190daed47d71a167
parent 532339 5724b63be8ac9c9833bea9c1ab49d58d76db477f
child 532341 93a5696c543140dce1f640adeace24d322ad1837
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1223368
milestone68.0a1
first release with
nightly linux32
4440662cd017 / 68.0a1 / 20190511220902 / files
nightly linux64
4440662cd017 / 68.0a1 / 20190511220902 / files
nightly mac
4440662cd017 / 68.0a1 / 20190511220902 / files
nightly win32
4440662cd017 / 68.0a1 / 20190511220902 / files
nightly win64
4440662cd017 / 68.0a1 / 20190511220902 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1223368 - Followup: fix browser_inspector_search-01/06.js failures on a CLOSED TREE. r=me
devtools/client/inspector/test/browser_inspector_search-01.js
devtools/client/inspector/test/browser_inspector_search-06.js
--- a/devtools/client/inspector/test/browser_inspector_search-01.js
+++ b/devtools/client/inspector/test/browser_inspector_search-01.js
@@ -82,14 +82,14 @@ add_task(async function() {
     await inspector.searchSuggestions._lastQuery;
 
     info(inspector.selection.nodeFront.id + " is selected with text " +
          searchBox.value);
     const nodeFront = await getNodeFront("#" + id, inspector);
     is(inspector.selection.nodeFront, nodeFront,
        "Correct node is selected for state " + index);
 
-    is(!searchBox.classList.contains("devtools-searchbox-no-match"), isValid,
-       "Correct searchbox result state for state " + index);
+    is(!searchBox.parentNode.classList.contains("devtools-searchbox-no-match"),
+       isValid, "Correct searchbox result state for state " + index);
 
     index++;
   }
 });
--- a/devtools/client/inspector/test/browser_inspector_search-06.js
+++ b/devtools/client/inspector/test/browser_inspector_search-06.js
@@ -70,17 +70,17 @@ async function synthesizeKeys(keys, insp
     EventUtils.synthesizeKey(key, {}, inspector.panelWin);
     await eventHandled;
     info("Waiting for the search query to complete");
     await inspector.searchSuggestions._lastQuery;
   }
 }
 
 function assertHasResult(inspector, expectResult) {
-  is(inspector.searchBox.classList.contains("devtools-style-searchbox-no-match"),
+  is(inspector.searchBox.parentNode.classList.contains("devtools-searchbox-no-match"),
      !expectResult,
      "There are" + (expectResult ? "" : " no") + " search results");
 }
 
 async function mutatePage(inspector, testActor, expression) {
   const onMutation = inspector.once("markupmutation");
   await testActor.eval(expression);
   await onMutation;