| 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 = InspectorTest.firstElementsTreeOutline(); | 9 var treeOutline = InspectorTest.firstElementsTreeOutline(); |
| 10 InspectorTest.findNode(function() { return false; }, firstStep); | 10 InspectorTest.findNode(function() { return false; }, firstStep); |
| 11 | 11 |
| 12 function firstStep() | 12 function firstStep() |
| 13 { | 13 { |
| 14 InspectorTest.addResult("===== Initial state of tree outline =====\n"); | 14 InspectorTest.addResult("===== Initial state of tree outline =====\n"); |
| 15 dump(); | 15 dump(); |
| 16 | 16 |
| 17 var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1)
; | 17 var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1)
; |
| 18 topNode.expandRecursively(); | 18 topNode.expandRecursively(); |
| 19 InspectorTest.runAfterPendingDispatches(secondStep); | 19 InspectorTest.deprecatedRunAfterPendingDispatches(secondStep); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 function secondStep() | 22 function secondStep() |
| 23 { | 23 { |
| 24 InspectorTest.addResult("\n===== State of tree outline after calling .ex
pandRecursively() =====\n"); | 24 InspectorTest.addResult("\n===== State of tree outline after calling .ex
pandRecursively() =====\n"); |
| 25 dump(); | 25 dump(); |
| 26 | 26 |
| 27 InspectorTest.completeTest(); | 27 InspectorTest.completeTest(); |
| 28 }; | 28 }; |
| 29 | 29 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 57 </div> | 57 </div> |
| 58 </div> | 58 </div> |
| 59 </div> | 59 </div> |
| 60 </div> | 60 </div> |
| 61 </div> | 61 </div> |
| 62 </div> | 62 </div> |
| 63 </div> | 63 </div> |
| 64 | 64 |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |