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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html

Issue 1899623002: Import latest web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle new failures Created 4 years, 8 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/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
index 97201bea1432daf080ebb76d6fa359811363f640..cce4195865da5a2508e68c20a32bd7ea6b275c0c 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/shadow-root-002.html
@@ -17,7 +17,7 @@ policies and contribution forms [3].
<link rel="author" title="Yuta Kitamura" href="mailto:yutak@google.com">
<link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#shadow-trees">
<meta name="assert" content="On distribution, content element is replaced with the shadow host's children.">
-<script src="../testcommon.js"></script>
+<script src="../../../html/resources/common.js"></script>
<style>
p { color: black; }
.pass { color: green; }
@@ -34,7 +34,7 @@ in this order.
<div class="pass">C</div>
</div>
<script>
-var shadowRoot = window.host.createShadowRoot();
+var shadowRoot = window.host.attachShadow({mode: 'open'});
shadowRoot.innerHTML =
'<style>\n' +
@@ -42,7 +42,7 @@ shadowRoot.innerHTML =
'* { color: red; }\n' +
'</style>' +
'<div class="shadow-pass">A</div>\n' +
- '<content>FAIL</content>' +
+ '<slot>FAIL</slot>' +
'<div class="shadow-pass">D</div>';
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698