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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-css-path.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../../http/tests/inspector/inspector-test.js" id="script-id"></scri pt> 5 <script src="../../http/tests/inspector/inspector-test.js" id="script-id"></scri pt>
6 <script src="../../http/tests/inspector/elements-test.js"></script> 6 <script src="../../http/tests/inspector/elements-test.js"></script>
7 <script id="test-script"> 7 <script id="test-script">
8 function matchingElements(selector) 8 function matchingElements(selector)
9 { 9 {
10 return document.querySelectorAll(selector).length; 10 return document.querySelectorAll(selector).length;
(...skipping 10 matching lines...) Expand all
21 dumpNodeData(); 21 dumpNodeData();
22 } 22 }
23 23
24 function dumpNodeData() 24 function dumpNodeData()
25 { 25 {
26 var entry = nodeQueue.shift(); 26 var entry = nodeQueue.shift();
27 if (!entry) { 27 if (!entry) {
28 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
29 return; 29 return;
30 } 30 }
31 var cssPath = WebInspector.DOMPresentationUtils.cssPath(entry.node, true ); 31 var cssPath = Components.DOMPresentationUtils.cssPath(entry.node, true);
32 var result = entry.prefix + cssPath; 32 var result = entry.prefix + cssPath;
33 InspectorTest.addResult(result.replace(/\n/g, "\\n")); 33 InspectorTest.addResult(result.replace(/\n/g, "\\n"));
34 var escapedPath = cssPath.replace(/\\/g, "\\\\"); 34 var escapedPath = cssPath.replace(/\\/g, "\\\\");
35 InspectorTest.evaluateInPage("matchingElements('" + escapedPath + "')", callback); 35 InspectorTest.evaluateInPage("matchingElements('" + escapedPath + "')", callback);
36 36
37 function callback(result) 37 function callback(result)
38 { 38 {
39 InspectorTest.assertEquals(1, result.value); 39 InspectorTest.assertEquals(1, result.value);
40 dumpNodeData(); 40 dumpNodeData();
41 } 41 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 <div class="c3 c4"></div> 135 <div class="c3 c4"></div>
136 <!-- Comment node 10 --> 136 <!-- Comment node 10 -->
137 <div class="c1 c4"></div> 137 <div class="c1 c4"></div>
138 <!-- Comment node 11 --> 138 <!-- Comment node 11 -->
139 <input type="text" class="input-class"/> 139 <input type="text" class="input-class"/>
140 <input type="text" class="input-class"/> 140 <input type="text" class="input-class"/>
141 <div></div> 141 <div></div>
142 </div> 142 </div>
143 </body> 143 </body>
144 </html> 144 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698