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

Side by Side 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, 5 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
(Empty)
1 (async function(testRunner) {
2 var {page, session, dp} = await testRunner.startURL('resources/dom-request-chi ld-nodes-traverse-frames.html', '');
3
4 var response = await dp.DOM.getDocument();
5 var rootId = response.result.root.children[0].children[1].nodeId;
6 dp.DOM.requestChildNodes({nodeId: rootId, depth: -1});
7 var message = await dp.DOM.onceSetChildNodes();
8 var iframeContentDocument = message.params.nodes[0].children[0].children[0].ch ildren[0].contentDocument;
9 if (iframeContentDocument.children) {
10 testRunner.die("Error IFrame node should not include children: " + JSON.stri ngify(iframeContentDocument, null, " "));
11 return;
12 }
13 var message = await dp.DOM.getDocument({pierce: true});
14 var bodyId = message.result.root.children[0].children[1].nodeId;
15 dp.DOM.requestChildNodes({nodeId: bodyId, depth: -1, pierce: true});
16 var message = await dp.DOM.onceSetChildNodes();
17
18 testRunner.logMessage(message);
19 testRunner.completeTest();
20 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698