| 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, ' +
|
|
|