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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getFlattenedDocument.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-getFlattenedDocument.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getFlattenedDocument.js b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getFlattenedDocument.js
new file mode 100644
index 0000000000000000000000000000000000000000..0226158d39f162e010746c4b65574ca9b397a1cb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getFlattenedDocument.js
@@ -0,0 +1,15 @@
+(async function(testRunner) {
+ var {page, session, dp} = await testRunner.startURL('resources/dom-getFlattenedDocument.html', '');
+
+ await session.evaluate(() => {
+ var host = document.querySelector('#shadow-host').createShadowRoot();
+ var template = document.querySelector('#shadow-template');
+ host.appendChild(template.content);
+ template.remove();
+ });
+ dp.DOM.enable();
+ var response = await dp.DOM.getFlattenedDocument({depth: -1, pierce: true});
+ testRunner.logMessage(response.result);
+ testRunner.completeTest();
+})
+

Powered by Google App Engine
This is Rietveld 408576698