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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.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 | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html
index 415b6d9194aea581ae855b73639629b29addbc30..f1ed3d8af680bf71be96103aa49352e8f0283399 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/preview-searchable.html
@@ -14,10 +14,10 @@ function test()
view.showSearchField();
InspectorTest.addResult("Should have found and highlighted all: " + search);
- var foundItems = view.element.querySelectorAll("* /deep/ .highlighted-search-result");
+ var foundItems = view.element.childTextNodes().filter(node => node.parentElement.classList.contains("highlighted-search-result")).map(node => node.parentElement);
InspectorTest.addResult("Normal search found " + foundItems.length + " results in dom.");
- foundItems = view.element.querySelectorAll("* /deep/ .cm-search-highlight-start");
+ foundItems = view.element.childTextNodes().filter(node => node.parentElement.classList.contains("cm-search-highlight-start")).map(node => node.parentElement);
InspectorTest.addResult("CodeMirror search found " + foundItems.length + " results in dom.");
InspectorTest.addResult("");
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698