| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 --> |
| OLD | NEW |