| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var treeOutline; | 9 var treeOutline; |
| 10 var parentNode; | 10 var parentNode; |
| 11 var childNode; | 11 var childNode; |
| 12 var frameNode; | 12 var frameNode; |
| 13 | 13 |
| 14 WebInspector.inspectorView.showPanel("elements"); | 14 WebInspector.inspectorView.showPanel("elements"); |
| 15 InspectorTest.runTestSuite([ | 15 InspectorTest.runTestSuite([ |
| 16 function testSetUp(next) | 16 function testSetUp(next) |
| 17 { | 17 { |
| 18 treeOutline = WebInspector.panels.elements.treeOutline; | 18 treeOutline = InspectorTest.firstElementsTreeOutline(); |
| 19 | 19 |
| 20 InspectorTest.nodeWithId("parent-node", callback); | 20 InspectorTest.nodeWithId("parent-node", callback); |
| 21 | 21 |
| 22 function callback(node) | 22 function callback(node) |
| 23 { | 23 { |
| 24 parentNode = node | 24 parentNode = node |
| 25 InspectorTest.nodeWithId("child-node", callback2); | 25 InspectorTest.nodeWithId("child-node", callback2); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function callback2(node) | 28 function callback2(node) |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 <div id="parent-node">parent | 165 <div id="parent-node">parent |
| 166 <div style="visibility:hidden">hidden | 166 <div style="visibility:hidden">hidden |
| 167 <div id="child-node" style="visibility:visible">child</div> | 167 <div id="child-node" style="visibility:visible">child</div> |
| 168 </div> | 168 </div> |
| 169 </div> | 169 </div> |
| 170 | 170 |
| 171 <iframe src="resources/hide-shortcut-iframe.html" onload="runTest()"> | 171 <iframe src="resources/hide-shortcut-iframe.html" onload="runTest()"> |
| 172 | 172 |
| 173 </body> | 173 </body> |
| 174 </html> | 174 </html> |
| OLD | NEW |