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

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

Issue 2455613002: Fix index used to join results of DOM.getDocument and CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Created 4 years, 1 month 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 var whitelist = ["transform", "transform-origin", "height", "width", "displa y", "outline-color"]; 15 InspectorTest.sendCommandOrDie("DOM.getDocument", {"depth": -1}, onDocument );
Sami 2016/10/26 17:15:23 nit: extra space before {"depth"...
alex clarke (OOO till 29th) 2016/10/27 10:51:11 Done.
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698