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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.js

Issue 2955943002: DevTools: migrate inspector-protocol/dom tests to a new test runner (Closed)
Patch Set: rebaseline 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.js b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.js
new file mode 100644
index 0000000000000000000000000000000000000000..6c807ffb4a9ba0376476556d8149a79bd9f092a0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-document-with-child-nodes.js
@@ -0,0 +1,23 @@
+(async function(testRunner) {
+ var {page, session, dp} = await testRunner.startHTML(`
+ <div id='depth-1'>
+ <div id='depth-2'>
+ <div id='depth-3'>
+ <iframe src='../dom/resources/shadow-dom-iframe.html'></iframe>
+ </div>
+ </div>
+ <div id='targetDiv'></div>
+ </div>
+ `, '');
+ var response = await dp.DOM.getDocument({depth: -1});
+ var iframeOwner = response.result.root.children[0].children[1].children[0].children[0].children[0].children[0];
+ if (iframeOwner.contentDocument.children) {
+ testRunner.die('Error IFrame node should not include children: ' + JSON.stringify(iframeOwner, null, ' '));
+ return;
+ }
+
+ var response = await dp.DOM.getDocument({depth: -1, pierce: true});
+ testRunner.logMessage(response);
+ testRunner.completeTest();
+})
+

Powered by Google App Engine
This is Rietveld 408576698