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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/shadow-root-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/upper-boundary-encapsulation/shadow-root-001.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/shadow-root-001.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/shadow-root-001.html
index a33535a6731639acc1f8ccf06c3e6cdec93cb933..7cd8f08933c51bd8e6d057904e4f4516a0dc7239 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/shadow-root-001.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/shadow-trees/upper-boundary-encapsulation/shadow-root-001.html
@@ -18,29 +18,29 @@ policies and contribution forms [3].
<meta name="assert" content="Upper-boundary encapsulation: The parentNode and parentElement attributes of the shadow root object must always return null.">
<script src="../../../../../../resources/testharness.js"></script>
<script src="../../../../../../resources/testharnessreport.js"></script>
-<script src="../../testcommon.js"></script>
+<script src="../../../../html/resources/common.js"></script>
</head>
<body>
<div id="log"></div>
<script>
test(function () {
var doc = document.implementation.createHTMLDocument('Test');
- var shadowRoot = doc.body.createShadowRoot();
+ var shadowRoot = doc.body.attachShadow({mode: 'open'});
assert_equals(shadowRoot.parentNode, null);
}, 'The parentNode attribute of a shadow root must always return null.');
test(function () {
var doc = document.implementation.createHTMLDocument('Test');
- var shadowRoot = doc.body.createShadowRoot();
+ var shadowRoot = doc.body.attachShadow({mode: 'open'});
assert_equals(shadowRoot.parentElement, null);
}, 'The parentElement attribute of a shadow root must always return null.');
test(function () {
var doc = document.implementation.createHTMLDocument('Test');
- var outerShadowRoot = doc.body.createShadowRoot();
+ var outerShadowRoot = doc.body.attachShadow({mode: 'open'});
var div = doc.createElement('div');
outerShadowRoot.appendChild(div);
- var innerShadowRoot = div.createShadowRoot();
+ var innerShadowRoot = div.attachShadow({mode: 'open'});
assert_equals(innerShadowRoot.parentNode, null);
},
'The parentNode attribute of a shadow root must always return null, ' +
@@ -49,10 +49,10 @@ test(function () {
test(function () {
var doc = document.implementation.createHTMLDocument('Test');
- var outerShadowRoot = doc.body.createShadowRoot();
+ var outerShadowRoot = doc.body.attachShadow({mode: 'open'});
var div = doc.createElement('div');
outerShadowRoot.appendChild(div);
- var innerShadowRoot = div.createShadowRoot();
+ var innerShadowRoot = div.attachShadow({mode: 'open'});
assert_equals(innerShadowRoot.parentElement, null);
},
'The parentElement attribute of a shadow root must always return null, ' +

Powered by Google App Engine
This is Rietveld 408576698