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

Side by Side Diff: LayoutTests/inspector/elements/node-xpath.xhtml

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!-- Pre-comment --> 1 <!-- Pre-comment -->
2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js" id="script-id"></scri pt> 4 <script src="../../http/tests/inspector/inspector-test.js" id="script-id"></scri pt>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script id="test-script"> 6 <script id="test-script">
7 //<![CDATA[ 7 //<![CDATA[
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.expandElementsTree(dumpNodes.bind(null, "")); 10 InspectorTest.expandElementsTree(dumpNodes.bind(null, ""));
(...skipping 10 matching lines...) Expand all
21 dumpNodeData(node, prefix); 21 dumpNodeData(node, prefix);
22 var children = node.children(); 22 var children = node.children();
23 for (var i = 0; children && i < children.length; ++i) 23 for (var i = 0; children && i < children.length; ++i)
24 dumpNodes(prefix + " ", children[i]); 24 dumpNodes(prefix + " ", children[i]);
25 if (node === doc) 25 if (node === doc)
26 InspectorTest.completeTest(); 26 InspectorTest.completeTest();
27 } 27 }
28 28
29 function getDocumentElement() 29 function getDocumentElement()
30 { 30 {
31 var map = WebInspector.domModel._idToDOMNode; 31 var map = InspectorTest.domModel._idToDOMNode;
32 for (var id in map) { 32 for (var id in map) {
33 if (map[id].nodeName() === "#document") 33 if (map[id].nodeName() === "#document")
34 return map[id]; 34 return map[id];
35 } 35 }
36 36
37 return null; 37 return null;
38 } 38 }
39 39
40 function dumpNodeData(node, prefix) 40 function dumpNodeData(node, prefix)
41 { 41 {
(...skipping 23 matching lines...) Expand all
65 <div id="container"> 65 <div id="container">
66 <div id="id3" class="foo">3 Prefix <![CDATA[<greeting>Hello, world!</greetin g>]]> Suffix</div> 66 <div id="id3" class="foo">3 Prefix <![CDATA[<greeting>Hello, world!</greetin g>]]> Suffix</div>
67 <div id="id4" class="foo">4</div> 67 <div id="id4" class="foo">4</div>
68 <div id="id5" class="foo">5</div> 68 <div id="id5" class="foo">5</div>
69 <div id="id6" class="foo">6</div> 69 <div id="id6" class="foo">6</div>
70 </div> 70 </div>
71 71
72 </body> 72 </body>
73 </html> 73 </html>
74 <!-- Post-comment --> 74 <!-- Post-comment -->
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/inspect-pseudo-element.html ('k') | LayoutTests/inspector/elements/perform-undo-undo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698