Index: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-callbacks.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-callbacks.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-callbacks.html |
index 7f5a4d0f8e76d495acfdedfe172ef5acfdac75b4..97ea67a8b4ec566dec9255761d192aa0f3e80929 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-callbacks.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-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; |
@@ -32,7 +32,7 @@ |
doc.documentElement.removeChild(instance); |
assert_array_equals(calls, ['disconnected', instance]); |
}); |
- }, 'Removing a custom element from ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
+ }, 'Removing a custom element from a ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -44,7 +44,7 @@ |
doc.documentElement.removeChild(parent); |
assert_array_equals(calls, ['disconnected', instance]); |
}); |
- }, 'Removing an ancestor of custom element from ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
+ }, 'Removing an ancestor of custom element from a ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -58,7 +58,7 @@ |
shadowRoot.removeChild(instance); |
assert_array_equals(calls, ['disconnected', instance]); |
}); |
- }, 'Removing a custom element from a shadow tree in ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
+ }, 'Removing a custom element from a shadow tree in a ' + documentName + ' must enqueue and invoke disconnectedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -85,7 +85,7 @@ |
shadowRoot.removeChild(instance); |
assert_array_equals(calls, []); |
}); |
- }, 'Removing a custom element from a detached shadow tree that belongs to ' + documentName + ' must not enqueue and invoke disconnectedCallback'); |
+ }, 'Removing a custom element from a detached shadow tree that belongs to a ' + documentName + ' must not enqueue and invoke disconnectedCallback'); |
}); |
</script> |