OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.sendCommand("DOM.enable", {}); | 8 InspectorTest.sendCommand("DOM.enable", {}); |
9 InspectorTest.sendCommandOrDie("DOM.getFlattenedDocument", {"depth": -1, "pi
erce": true}, onDocument); | 9 InspectorTest.sendCommandOrDie("DOM.getFlattenedDocument", {"depth": -1, "pi
erce": true}, onDocument); |
10 | 10 |
11 function onDocument(response) { | 11 function onDocument(response) { |
12 function stabilize(key, value) { | 12 function stabilize(key, value) { |
13 var unstableKeys = ["backendNodeId", "documentURL", "baseURL", "fram
eId"]; | 13 var unstableKeys = ["backendNodeId", "documentURL", "baseURL", "fram
eId"]; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 <div id="shadow-host"></div> | 46 <div id="shadow-host"></div> |
47 <script type="text/javascript"> | 47 <script type="text/javascript"> |
48 var host = document.querySelector("#shadow-host").createShadowRoot(); | 48 var host = document.querySelector("#shadow-host").createShadowRoot(); |
49 var template = document.querySelector("#shadow-template"); | 49 var template = document.querySelector("#shadow-template"); |
50 host.appendChild(template.content); | 50 host.appendChild(template.content); |
51 template.remove(); | 51 template.remove(); |
52 window.onload = runTest; | 52 window.onload = runTest; |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |