| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function appendChild() | 8 function appendChild() |
| 9 { | 9 { |
| 10 var container = document.getElementById("container"); | 10 var container = document.getElementById("container"); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 InspectorTest.dumpElementsTree(containerNode); | 27 InspectorTest.dumpElementsTree(containerNode); |
| 28 next(); | 28 next(); |
| 29 } | 29 } |
| 30 InspectorTest.selectNodeWithId("container", callback); | 30 InspectorTest.selectNodeWithId("container", callback); |
| 31 }, | 31 }, |
| 32 | 32 |
| 33 function testAppend(next) { | 33 function testAppend(next) { |
| 34 function callback() | 34 function callback() |
| 35 { | 35 { |
| 36 InspectorTest.firstElementsTreeOutline().runPendingUpdates(); | 36 InspectorTest.firstElementsTreeOutline().runPendingUpdates(); |
| 37 InspectorTest.runAfterPendingDispatches(function() { | 37 InspectorTest.deprecatedRunAfterPendingDispatches(function() { |
| 38 InspectorTest.addResult("======== Appended ========="); | 38 InspectorTest.addResult("======== Appended ========="); |
| 39 InspectorTest.dumpElementsTree(containerNode); | 39 InspectorTest.dumpElementsTree(containerNode); |
| 40 next(); | 40 next(); |
| 41 }) | 41 }) |
| 42 } | 42 } |
| 43 InspectorTest.evaluateInPage("appendChild()", callback); | 43 InspectorTest.evaluateInPage("appendChild()", callback); |
| 44 } | 44 } |
| 45 ]); | 45 ]); |
| 46 } | 46 } |
| 47 | 47 |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 | 50 |
| 51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
| 52 <p> | 52 <p> |
| 53 Tests that elements panel updates hasChildren flag upon adding children to colla
psed nodes. | 53 Tests that elements panel updates hasChildren flag upon adding children to colla
psed nodes. |
| 54 </p> | 54 </p> |
| 55 | 55 |
| 56 <div id="container"></div> | 56 <div id="container"></div> |
| 57 | 57 |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |