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

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

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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 <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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698