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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.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/reprojection/reprojection-001.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
index 4744768a7dfcefe4398e85e69a297427c83aae3c..53cee0d0c5f14a7dcb72761ba2bb65efa18863f2 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html
@@ -17,7 +17,7 @@ policies and contribution forms [3].
<link rel="author" title="Hayato Ito" href="mailto:hayato@google.com">
<link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#reprojection">
<meta name="assert" content="a node is distributed into more than one insertion point.">
-<script src="../../testcommon.js"></script>
+<script src="../../../../html/resources/common.js"></script>
<style>
.pass { color: green; }
</style>
@@ -29,11 +29,11 @@ policies and contribution forms [3].
<div class="pass">Orange.</div>
</div>
<script>
- var shadowRoot = host.createShadowRoot(host);
- shadowRoot.innerHTML = '<div id="host2">Hello a Shadow Root.<content></content><div>Banana.</div></div>';
+ var shadowRoot = host.attachShadow({mode: 'open'});
+ shadowRoot.innerHTML = '<div id="host2">Hello a Shadow Root.<slot></slot><div>Banana.</div></div>';
var host2 = shadowRoot.getElementById("host2");
- var shadowRoot2 = host2.createShadowRoot(host2);
- shadowRoot2.innerHTML = '<div>Hello a Shadow Root2.</div><div><content></content></div>';
+ var shadowRoot2 = host2.attachShadow({mode: 'open'});
+ shadowRoot2.innerHTML = '<div>Hello a Shadow Root2.</div><div><slot></slot></div>';
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698