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

Side by Side 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, 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.startHTML(`
3 <div id='depth-1'>
4 <div id='depth-2'>
5 <div id='depth-3'>
6 <iframe src='../dom/resources/shadow-dom-iframe.html'></iframe>
7 </div>
8 </div>
9 <div id='targetDiv'></div>
10 </div>
11 `, '');
12 var response = await dp.DOM.getDocument({depth: -1});
13 var iframeOwner = response.result.root.children[0].children[1].children[0].chi ldren[0].children[0].children[0];
14 if (iframeOwner.contentDocument.children) {
15 testRunner.die('Error IFrame node should not include children: ' + JSON.stri ngify(iframeOwner, null, ' '));
16 return;
17 }
18
19 var response = await dp.DOM.getDocument({depth: -1, pierce: true});
20 testRunner.logMessage(response);
21 testRunner.completeTest();
22 })
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698