| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/elements-test.js"></script> | |
| 5 <script> | |
| 6 function updateShadowDOM() | |
| 7 { | |
| 8 shadowRoot.removeChild(shadowRoot.firstChild); | |
| 9 } | |
| 10 | |
| 11 function test() | |
| 12 { | |
| 13 InspectorTest.expandElementsTree(function() { | |
| 14 InspectorTest.evaluateInPage("updateShadowDOM()", function() { | |
| 15 InspectorTest.expandElementsTree(function() { | |
| 16 var containerElem = InspectorTest.expandedNodeWithId('container'
); | |
| 17 InspectorTest.dumpElementsTree(containerElem); | |
| 18 InspectorTest.completeTest(); | |
| 19 }); | |
| 20 }); | |
| 21 }); | |
| 22 } | |
| 23 </script> | |
| 24 </head> | |
| 25 | |
| 26 <body onload="runTest()"> | |
| 27 | |
| 28 <p id="description">This test confirms that updating the shadow dom is reflected
to the Inspector.</p> | |
| 29 | |
| 30 <div id="container"> | |
| 31 <div id="host"></div> | |
| 32 </div> | |
| 33 | |
| 34 <script> | |
| 35 var shadowRoot = host.createShadowRoot(); | |
| 36 shadowRoot.innerHTML = "<div></div>"; | |
| 37 </script> | |
| 38 | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |