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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/get-destination-insertion-points-re-distribution.html

Issue 1777833002: Use Shadow DOM v1 APIs for Shadow DOM v1 tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/shadow-dom/get-destination-insertion-points-re-distribution.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/get-destination-insertion-points-re-distribution.html b/third_party/WebKit/LayoutTests/shadow-dom/get-destination-insertion-points-re-distribution.html
index 8760c32f9aad7ac9550127a726c03d6a4e193881..21d48ab8020df438bd141359b5b0b6488131ffec 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/get-destination-insertion-points-re-distribution.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/get-destination-insertion-points-re-distribution.html
@@ -1,10 +1,7 @@
<!DOCTYPE html>
-<html>
-<head>
<script src="../resources/js-test.js"></script>
<script src="../fast/dom/shadow/resources/shadow-dom.js"></script>
-</head>
-<body>
+<body></body>
<script>
description("Tests for getDestinationInsertionPoints() which involves re-distribution.");
@@ -26,7 +23,7 @@ document.body.appendChild(
createDOM('div', {'id': 'host-10'},
createShadowRoot(
createDOM('div', {'id': 'host-20'},
- createShadowRoot(
+ attachShadow(
{'mode': 'open'},
createDOM('content', {'id': 'content-20'})),
createDOM('content', {'id': 'content-10'}))),
@@ -40,7 +37,7 @@ document.body.appendChild(
createDOM('div', {'id': 'host-11'},
createShadowRoot(
createDOM('div', {'id': 'host-21'},
- createShadowRoot(
+ attachShadow(
{'mode': 'closed'},
createDOM('content', {'id': 'content-21'})),
createDOM('content', {'id': 'content-11'}))),
@@ -52,7 +49,7 @@ shouldBeEqualAsArray(document.getElementById('child-11').getDestinationInsertion
document.body.appendChild(
createDOM('div', {},
createDOM('div', {'id': 'host-12'},
- createShadowRoot(
+ attachShadow(
{'mode': 'closed'},
createDOM('div', {'id': 'host-22'},
createShadowRoot(
@@ -62,5 +59,3 @@ document.body.appendChild(
shouldBe('document.getElementById("child-12").getDestinationInsertionPoints().length', '0');
</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698