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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.html

Issue 2495623002: Rename traverseFrames to pierce and traverse shadow dom too. (Closed)
Patch Set: Rename traverseFrames to pierce. 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 <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/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 5
6 function test() 6 function test()
7 { 7 {
8 getDocument(); 8 getDocument();
9 9
10 function getDocument() 10 function getDocument()
(...skipping 20 matching lines...) Expand all
31 if (propertyName === propertyNameToReplace) { 31 if (propertyName === propertyNameToReplace) {
32 object[propertyName] = "???"; 32 object[propertyName] = "???";
33 } else if (typeof object[propertyName] === "object") { 33 } else if (typeof object[propertyName] === "object") {
34 replacePropertyRecursive(object[propertyName], propertyNameToRep lace); 34 replacePropertyRecursive(object[propertyName], propertyNameToRep lace);
35 } 35 }
36 } 36 }
37 } 37 }
38 38
39 function getDocumentPlusIframe() 39 function getDocumentPlusIframe()
40 { 40 {
41 InspectorTest.sendCommand("DOM.getDocument", {"depth": -1, "traverseFram es": true}, function(messageObject) { 41 InspectorTest.sendCommand("DOM.getDocument", {"depth": -1, "pierce": tru e}, function(messageObject) {
42 if (messageObject.hasOwnProperty("error")) 42 if (messageObject.hasOwnProperty("error"))
43 InspectorTest.log("Backend error: " + messageObject.error.messag e + " (" + messageObject.error.code + ")\n"); 43 InspectorTest.log("Backend error: " + messageObject.error.messag e + " (" + messageObject.error.code + ")\n");
44 44
45 var iframeOwner = messageObject.result.root.children[0].children[1]. children[0].children[0].children[0].children[0]; 45 var iframeOwner = messageObject.result.root.children[0].children[1]. children[0].children[0].children[0].children[0];
46 46
47 // Replace properties that tend to change every run. 47 // Replace properties that tend to change every run.
48 replacePropertyRecursive(messageObject, "frameId"); 48 replacePropertyRecursive(messageObject, "frameId");
49 replacePropertyRecursive(messageObject, "documentURL"); 49 replacePropertyRecursive(messageObject, "documentURL");
50 replacePropertyRecursive(messageObject, "baseURL"); 50 replacePropertyRecursive(messageObject, "baseURL");
51 51
(...skipping 14 matching lines...) Expand all
66 runTest(); 66 runTest();
67 }, false); 67 }, false);
68 68
69 </script> 69 </script>
70 </head> 70 </head>
71 <body> 71 <body>
72 72
73 <div id="depth-1"> 73 <div id="depth-1">
74 <div id="depth-2"> 74 <div id="depth-2">
75 <div id="depth-3"> 75 <div id="depth-3">
76 <iframe src="resources/iframe.html"></iframe> 76 <iframe src="resources/shadow-dom-iframe.html"></iframe>
77 </div> 77 </div>
78 </div> 78 </div>
79 <div id="targetDiv"></div>
79 </div> 80 </div>
80 81
81 </body> 82 </body>
82 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698