| 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 typeText() | 7 function typeText() |
| 8 { | 8 { |
| 9 var input = document.getElementById("input1"); | 9 var input = document.getElementById("input1"); |
| 10 input.focus(); | 10 input.focus(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 containerNode = InspectorTest.expandedNodeWithId("container"); | 27 containerNode = InspectorTest.expandedNodeWithId("container"); |
| 28 InspectorTest.addResult("========= Original ========"); | 28 InspectorTest.addResult("========= Original ========"); |
| 29 InspectorTest.dumpElementsTree(containerNode); | 29 InspectorTest.dumpElementsTree(containerNode); |
| 30 next(); | 30 next(); |
| 31 } | 31 } |
| 32 InspectorTest.expandElementsTree(callback); | 32 InspectorTest.expandElementsTree(callback); |
| 33 }, | 33 }, |
| 34 | 34 |
| 35 function testAppend(next) | 35 function testAppend(next) |
| 36 { | 36 { |
| 37 InspectorTest.evaluateInPage("typeText()", callback); |
| 38 |
| 37 function callback() | 39 function callback() |
| 38 { | 40 { |
| 39 InspectorTest.evaluateInPage("typeText()", callback2); | |
| 40 | |
| 41 } | |
| 42 function callback2() | |
| 43 { | |
| 44 InspectorTest.addResult("======== Type text ========="); | 41 InspectorTest.addResult("======== Type text ========="); |
| 45 InspectorTest.dumpElementsTree(containerNode); | 42 InspectorTest.dumpElementsTree(containerNode); |
| 46 next(); | 43 next(); |
| 47 } | 44 } |
| 48 InspectorTest.expandElementsTree(callback); | |
| 49 } | 45 } |
| 50 ]); | 46 ]); |
| 51 } | 47 } |
| 52 | 48 |
| 53 </script> | 49 </script> |
| 54 </head> | 50 </head> |
| 55 | 51 |
| 56 <body onload="runTest()"> | 52 <body onload="runTest()"> |
| 57 <p> | 53 <p> |
| 58 Tests that elements panel updates shadow dom tree structure upon typing. | 54 Tests that elements panel updates shadow dom tree structure upon typing. |
| 59 </p> | 55 </p> |
| 60 | 56 |
| 61 <div id="container"><input type="text" id="input1"></div> | 57 <div id="container"><input type="text" id="input1"></div> |
| 62 | 58 |
| 63 </body> | 59 </body> |
| 64 </html> | 60 </html> |
| OLD | NEW |