Index: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.html |
index 2df100301e9821d17220646f66a9336aa1752f1e..5c08a04a4210d7f8bc3d752fa3e4db220aa26118 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.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/document-types.js"></script> |
+<script src="./resources/custom-elements-helpers.js"></script> |
</head> |
<body> |
<div id="log"></div> |
@@ -28,7 +28,7 @@ test(function () { |
assert_array_equals(calls, ['connected']); |
}, 'Inserting a custom element into the owner document must not enqueue and invoke adoptedCallback'); |
-DocumentTypes.forEach(function (entry) { |
+document_types().forEach(function (entry) { |
if (entry.isOwner) |
return; |
@@ -42,7 +42,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(instance); |
assert_array_equals(calls, ['adopted', document, doc, 'connected']); |
}); |
- }, 'Inserting a custom element into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Inserting a custom element into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -52,7 +52,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(instance); |
assert_array_equals(calls, ['disconnected', 'adopted', document, doc, 'connected']); |
}); |
- }, 'Moving a custom element from the owner document into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Moving a custom element from the owner document into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -63,7 +63,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(parent); |
assert_array_equals(calls, ['adopted', document, doc, 'connected']); |
}); |
- }, 'Inserting an ancestor of custom element into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Inserting an ancestor of custom element into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -75,7 +75,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(parent); |
assert_array_equals(calls, ['disconnected', 'adopted', document, doc, 'connected']); |
}); |
- }, 'Moving an ancestor of custom element from the owner document into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Moving an ancestor of custom element from the owner document into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -88,7 +88,7 @@ DocumentTypes.forEach(function (entry) { |
shadowRoot.appendChild(instance); |
assert_array_equals(calls, ['adopted', document, doc, 'connected']); |
}); |
- }, 'Inserting a custom element into a shadow tree in a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Inserting a custom element into a shadow tree in ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -101,7 +101,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(host); |
assert_array_equals(calls, ['adopted', document, doc, 'connected']); |
}); |
- }, 'Inserting the shadow host of a custom element into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Inserting the shadow host of a custom element into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -115,7 +115,7 @@ DocumentTypes.forEach(function (entry) { |
doc.documentElement.appendChild(host); |
assert_array_equals(calls, ['disconnected', 'adopted', document, doc, 'connected']); |
}); |
- }, 'Moving the shadow host of a custom element from the owner document into a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Moving the shadow host of a custom element from the owner document into ' + documentName + ' must enqueue and invoke adoptedCallback'); |
promise_test(function () { |
return getDocument().then(function (doc) { |
@@ -127,7 +127,7 @@ DocumentTypes.forEach(function (entry) { |
shadowRoot.appendChild(instance); |
assert_array_equals(calls, ['adopted', document, doc]); |
}); |
- }, 'Inserting a custom element into a detached shadow tree that belongs to a ' + documentName + ' must enqueue and invoke adoptedCallback'); |
+ }, 'Inserting a custom element into a detached shadow tree that belongs to ' + documentName + ' must enqueue and invoke adoptedCallback'); |
}); |
</script> |