| 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 function updateShadowDOM() | 6 function updateShadowDOM() |
| 7 { | 7 { |
| 8 shadowRoot.removeChild(shadowRoot.firstChild); | 8 shadowRoot.removeChild(shadowRoot.firstChild); |
| 9 } | 9 } |
| 10 | 10 |
| 11 function test() | 11 function test() |
| 12 { | 12 { |
| 13 InspectorTest.expandElementsTree(function() { | 13 InspectorTest.expandElementsTree(function() { |
| 14 InspectorTest.evaluateInPage("updateShadowDOM()", function() { | 14 InspectorTest.evaluateInPage("updateShadowDOM()", function() { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 31 <div id="host"></div> | 31 <div id="host"></div> |
| 32 </div> | 32 </div> |
| 33 | 33 |
| 34 <script> | 34 <script> |
| 35 var shadowRoot = host.createShadowRoot(); | 35 var shadowRoot = host.createShadowRoot(); |
| 36 shadowRoot.innerHTML = "<div></div>"; | 36 shadowRoot.innerHTML = "<div></div>"; |
| 37 </script> | 37 </script> |
| 38 | 38 |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |