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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/disconnected-callbacks.html

Issue 2408083002: Revert of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Created 4 years, 2 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/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>

Powered by Google App Engine
This is Rietveld 408576698