Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes.html

Issue 2413693002: Rename DOM.getLayoutTreeNodes to CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698