| Index: third_party/WebKit/LayoutTests/inspector/console/console-search.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-search.html b/third_party/WebKit/LayoutTests/inspector/console/console-search.html
|
| index 125cc27c6abcb895cb000a4c4ab69bbe70356956..5720458b8d5b31da306b6f1e3aed1c56a9d442fa 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/console/console-search.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-search.html
|
| @@ -43,7 +43,7 @@ function test()
|
|
|
| function dumpMatches()
|
| {
|
| - var matches = document.querySelectorAll("html /deep/ .highlighted-search-result");
|
| + var matches = consoleView.element.childTextNodes().filter(node => node.parentElement.classList.contains("highlighted-search-result")).map(node => node.parentElement);
|
| addResult("number of visible matches: " + matches.length);
|
| for (var i = 0; i < matches.length; ++i)
|
| addResult(" match " + i + ": " + matches[i].className);
|
| @@ -164,8 +164,8 @@ function test()
|
| function dumpElements(callback)
|
| {
|
| consoleView._searchableView.handleFindNextShortcut();
|
| - var currentResultElem = document.querySelector("html /deep/ .current-search-result");
|
| - addResult("matched tree element: " + currentResultElem.innerHTML);
|
| + var currentResultElem = consoleView.element.childTextNodes().filter(node => node.parentElement.classList.contains("current-search-result"))[0];
|
| + addResult("matched tree element: " + currentResultElem.textContent);
|
| callback();
|
| }
|
|
|
|
|