| Index: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/connected-callbacks.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/connected-callbacks.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/connected-callbacks.html
|
| index d6e68262a850a9a952877264fdf64594e8025375..97833db850545dbe9944d9208149d594273733e9 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/connected-callbacks.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/connected-callbacks.html
|
| @@ -7,7 +7,7 @@
|
| <link rel="help" href="https://w3c.github.io/webcomponents/spec/custom/#dfn-connected-callback">
|
| <script src="/resources/testharness.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| -<script src="resources/custom-elements-helpers.js"></script>
|
| +<script src="resources/document-types.js"></script>
|
| </head>
|
| <body>
|
| <div id="log"></div>
|
| @@ -20,7 +20,7 @@
|
| }
|
| customElements.define('my-custom-element', MyCustomElement);
|
|
|
| -document_types().forEach(function (entry) {
|
| +DocumentTypes.forEach(function (entry) {
|
| var documentName = entry.name;
|
| var getDocument = entry.create;
|
|
|
| @@ -31,7 +31,7 @@
|
| doc.documentElement.appendChild(instance);
|
| assert_array_equals(calls, ['connected', instance]);
|
| });
|
| - }, 'Inserting a custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
|
| + }, 'Inserting a custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
|
|
|
| promise_test(function () {
|
| return getDocument().then(function (doc) {
|
| @@ -42,7 +42,7 @@
|
| doc.documentElement.appendChild(parent);
|
| assert_array_equals(calls, ['connected', instance]);
|
| });
|
| - }, 'Inserting an ancestor of custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
|
| + }, 'Inserting an ancestor of custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
|
|
|
| promise_test(function () {
|
| return getDocument().then(function (doc) {
|
| @@ -55,7 +55,7 @@
|
| shadowRoot.appendChild(instance);
|
| assert_array_equals(calls, ['connected', instance]);
|
| });
|
| - }, 'Inserting a custom element into a shadow tree in ' + documentName + ' must enqueue and invoke connectedCallback');
|
| + }, 'Inserting a custom element into a shadow tree in a ' + documentName + ' must enqueue and invoke connectedCallback');
|
|
|
| promise_test(function () {
|
| return getDocument().then(function (doc) {
|
| @@ -68,7 +68,7 @@
|
| doc.documentElement.appendChild(host);
|
| assert_array_equals(calls, ['connected', instance]);
|
| });
|
| - }, 'Inserting the shadow host of a custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
|
| + }, 'Inserting the shadow host of a custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
|
|
|
| promise_test(function () {
|
| return getDocument().then(function (doc) {
|
| @@ -80,7 +80,7 @@
|
| shadowRoot.appendChild(instance);
|
| assert_array_equals(calls, []);
|
| });
|
| - }, 'Inserting a custom element into a detached shadow tree that belongs to ' + documentName + ' must not enqueue and invoke connectedCallback');
|
| + }, 'Inserting a custom element into a detached shadow tree that belongs to a ' + documentName + ' must not enqueue and invoke connectedCallback');
|
| });
|
|
|
| </script>
|
|
|