Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-search.html

Issue 2658723005: DevTools: remove deprecated shadow dom selectors from inspector LayoutTests (Closed)
Patch Set: consistent quotes Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698