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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../network-test.js"></script> 4 <script src="../network-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 function testSearches(view, searches) 8 function testSearches(view, searches)
9 { 9 {
10 for (var search of searches) { 10 for (var search of searches) {
11 view._searchInputElement.value = search; 11 view._searchInputElement.value = search;
12 view._regexButton.setToggled(false); 12 view._regexButton.setToggled(false);
13 view._caseSensitiveButton.setToggled(false); 13 view._caseSensitiveButton.setToggled(false);
14 view.showSearchField(); 14 view.showSearchField();
15 InspectorTest.addResult("Should have found and highlighted all: " + search); 15 InspectorTest.addResult("Should have found and highlighted all: " + search);
16 16
17 var foundItems = view.element.querySelectorAll("* /deep/ .highlighte d-search-result"); 17 var foundItems = view.element.childTextNodes().filter(node => node.p arentElement.classList.contains("highlighted-search-result")).map(node => node.p arentElement);
18 InspectorTest.addResult("Normal search found " + foundItems.length + " results in dom."); 18 InspectorTest.addResult("Normal search found " + foundItems.length + " results in dom.");
19 19
20 foundItems = view.element.querySelectorAll("* /deep/ .cm-search-high light-start"); 20 foundItems = view.element.childTextNodes().filter(node => node.paren tElement.classList.contains("cm-search-highlight-start")).map(node => node.paren tElement);
21 InspectorTest.addResult("CodeMirror search found " + foundItems.leng th + " results in dom."); 21 InspectorTest.addResult("CodeMirror search found " + foundItems.leng th + " results in dom.");
22 InspectorTest.addResult(""); 22 InspectorTest.addResult("");
23 } 23 }
24 } 24 }
25 25
26 function previewViewHandled(searches, callback, view) 26 function previewViewHandled(searches, callback, view)
27 { 27 {
28 var isSearchable = (view instanceof UI.SearchableView); 28 var isSearchable = (view instanceof UI.SearchableView);
29 var compontentView = view; 29 var compontentView = view;
30 var typeName = "unknown"; 30 var typeName = "unknown";
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 testType("text/xml", "{foo0: 'barr', 'barr': 'fooo'}", ["fooo", "bar "], next); 113 testType("text/xml", "{foo0: 'barr', 'barr': 'fooo'}", ["fooo", "bar "], next);
114 } 114 }
115 ]); 115 ]);
116 } 116 }
117 </script> 117 </script>
118 </head> 118 </head>
119 <body onload="runTest()"> 119 <body onload="runTest()">
120 <p>Tests that resources with JSON MIME types are previewed with the JSON viewer. </p> 120 <p>Tests that resources with JSON MIME types are previewed with the JSON viewer. </p>
121 </body> 121 </body>
122 </html> 122 </html>
OLDNEW
« 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