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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.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-child-nodes-traverse-frames.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.js b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.js
new file mode 100644
index 0000000000000000000000000000000000000000..01db208ee95c48ce6968750460cbf9d6dd6e9e47
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.js
@@ -0,0 +1,20 @@
+(async function(testRunner) {
+ var {page, session, dp} = await testRunner.startURL('resources/dom-request-child-nodes-traverse-frames.html', '');
+
+ var response = await dp.DOM.getDocument();
+ var rootId = response.result.root.children[0].children[1].nodeId;
+ dp.DOM.requestChildNodes({nodeId: rootId, depth: -1});
+ var message = await dp.DOM.onceSetChildNodes();
+ var iframeContentDocument = message.params.nodes[0].children[0].children[0].children[0].contentDocument;
+ if (iframeContentDocument.children) {
+ testRunner.die("Error IFrame node should not include children: " + JSON.stringify(iframeContentDocument, null, " "));
+ return;
+ }
+ var message = await dp.DOM.getDocument({pierce: true});
+ var bodyId = message.result.root.children[0].children[1].nodeId;
+ dp.DOM.requestChildNodes({nodeId: bodyId, depth: -1, pierce: true});
+ var message = await dp.DOM.onceSetChildNodes();
+
+ testRunner.logMessage(message);
+ testRunner.completeTest();
+});

Powered by Google App Engine
This is Rietveld 408576698