OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 @font-face { | 4 @font-face { |
5 font-family: 'ahem'; | 5 font-family: 'ahem'; |
6 src: url(../../resources/Ahem.ttf); | 6 src: url(../../resources/Ahem.ttf); |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 9 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
10 <script> | 10 <script> |
11 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
14 InspectorTest.sendCommand("DOM.enable", {}); | 14 InspectorTest.sendCommand("DOM.enable", {}); |
15 var whitelist = ["transform", "transform-origin", "height", "width", "displa
y", "outline-color"]; | 15 InspectorTest.sendCommandOrDie("DOM.getDocument", {"depth": -1}, onDocument)
; |
16 InspectorTest.sendCommandOrDie("CSS.getLayoutTreeAndStyles", {"computedStyle
Whitelist": whitelist}, onLayoutTreeNodes); | 16 |
| 17 function onDocument(response) { |
| 18 var whitelist = ["transform", "transform-origin", "height", "width", "di
splay", "outline-color"]; |
| 19 InspectorTest.sendCommandOrDie("CSS.getLayoutTreeAndStyles", {"computedS
tyleWhitelist": whitelist}, onLayoutTreeNodes); |
| 20 } |
17 | 21 |
18 function onLayoutTreeNodes(response) | 22 function onLayoutTreeNodes(response) |
19 { | 23 { |
20 InspectorTest.log("\nLayoutTreeNodes result:"); | 24 InspectorTest.log("\nLayoutTreeNodes result:"); |
21 canonicalizeBackendNodeIds(response); | 25 canonicalizeBackendNodeIds(response); |
22 InspectorTest.log(JSON.stringify(response, null, 2)); | 26 InspectorTest.log(JSON.stringify(response, null, 2)); |
23 InspectorTest.completeTest(); | 27 InspectorTest.completeTest(); |
24 } | 28 } |
25 | 29 |
26 // While unique the backendNodeId IDs are not stable cross platform, so we c
anonicalize them. | 30 // While unique the backendNodeId IDs are not stable cross platform, so we c
anonicalize them. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 <script type="text/javascript"> | 75 <script type="text/javascript"> |
72 var host = document.querySelector("#shadow-host").createShadowRoot(); | 76 var host = document.querySelector("#shadow-host").createShadowRoot(); |
73 var template = document.querySelector("#shadow-template"); | 77 var template = document.querySelector("#shadow-template"); |
74 host.appendChild(template.content); | 78 host.appendChild(template.content); |
75 template.remove(); | 79 template.remove(); |
76 window.onload = runTest; | 80 window.onload = runTest; |
77 </script> | 81 </script> |
78 </div> | 82 </div> |
79 </body> | 83 </body> |
80 </html> | 84 </html> |
OLD | NEW |