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 InspectorTest.sendCommandOrDie("DOM.getLayoutTreeNodes", {}, onLayoutTreeNod
es); | 15 var whitelist = ["transform", "transform-origin", "font-family", "height", "
width", "display", "outline-color"]; |
| 16 InspectorTest.sendCommandOrDie("DOM.getLayoutTreeNodes", {"computedStyleWhit
elist": whitelist}, onLayoutTreeNodes); |
16 | 17 |
17 function onLayoutTreeNodes(response) | 18 function onLayoutTreeNodes(response) |
18 { | 19 { |
19 InspectorTest.log("\nLayoutTreeNodes result:"); | 20 InspectorTest.log("\nLayoutTreeNodes result:"); |
20 canonicalizeBackendNodeIds(response); | 21 canonicalizeBackendNodeIds(response); |
21 InspectorTest.log(JSON.stringify(response, null, 2)); | 22 InspectorTest.log(JSON.stringify(response, null, 2)); |
22 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
23 } | 24 } |
24 | 25 |
25 // While unique the backendNodeId IDs are not stable cross platform, so we c
anonicalize them. | 26 // While unique the backendNodeId IDs are not stable cross platform, so we c
anonicalize them. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 </ul> | 66 </ul> |
66 </div> | 67 </div> |
67 <div style="transform: rotateZ(90deg); width: 200px">Rotated text!</div> | 68 <div style="transform: rotateZ(90deg); width: 200px">Rotated text!</div> |
68 <iframe src="resources/simple-iframe.html" width="400" height="200"></iframe
> | 69 <iframe src="resources/simple-iframe.html" width="400" height="200"></iframe
> |
69 <div id="shadow-host"></div> | 70 <div id="shadow-host"></div> |
70 <script type="text/javascript"> | 71 <script type="text/javascript"> |
71 var host = document.querySelector("#shadow-host").createShadowRoot(); | 72 var host = document.querySelector("#shadow-host").createShadowRoot(); |
72 var template = document.querySelector("#shadow-template"); | 73 var template = document.querySelector("#shadow-template"); |
73 host.appendChild(template.content); | 74 host.appendChild(template.content); |
74 template.remove(); | 75 template.remove(); |
75 runTest(); | 76 window.onload = runTest; |
76 </script> | 77 </script> |
77 </div> | 78 </div> |
78 </body> | 79 </body> |
79 </html> | 80 </html> |
OLD | NEW |