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

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

Issue 2408493002: Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Added one more win7-specific baseline 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/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 97833db850545dbe9944d9208149d594273733e9..d6e68262a850a9a952877264fdf64594e8025375 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/document-types.js"></script>
+<script src="resources/custom-elements-helpers.js"></script>
</head>
<body>
<div id="log"></div>
@@ -20,7 +20,7 @@ class MyCustomElement extends HTMLElement {
}
customElements.define('my-custom-element', MyCustomElement);
-DocumentTypes.forEach(function (entry) {
+document_types().forEach(function (entry) {
var documentName = entry.name;
var getDocument = entry.create;
@@ -31,7 +31,7 @@ DocumentTypes.forEach(function (entry) {
doc.documentElement.appendChild(instance);
assert_array_equals(calls, ['connected', instance]);
});
- }, 'Inserting a custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
+ }, 'Inserting a custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
promise_test(function () {
return getDocument().then(function (doc) {
@@ -42,7 +42,7 @@ DocumentTypes.forEach(function (entry) {
doc.documentElement.appendChild(parent);
assert_array_equals(calls, ['connected', instance]);
});
- }, 'Inserting an ancestor of custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
+ }, 'Inserting an ancestor of custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
promise_test(function () {
return getDocument().then(function (doc) {
@@ -55,7 +55,7 @@ DocumentTypes.forEach(function (entry) {
shadowRoot.appendChild(instance);
assert_array_equals(calls, ['connected', instance]);
});
- }, 'Inserting a custom element into a shadow tree in a ' + documentName + ' must enqueue and invoke connectedCallback');
+ }, 'Inserting a custom element into a shadow tree in ' + documentName + ' must enqueue and invoke connectedCallback');
promise_test(function () {
return getDocument().then(function (doc) {
@@ -68,7 +68,7 @@ DocumentTypes.forEach(function (entry) {
doc.documentElement.appendChild(host);
assert_array_equals(calls, ['connected', instance]);
});
- }, 'Inserting the shadow host of a custom element into a ' + documentName + ' must enqueue and invoke connectedCallback');
+ }, 'Inserting the shadow host of a custom element into ' + documentName + ' must enqueue and invoke connectedCallback');
promise_test(function () {
return getDocument().then(function (doc) {
@@ -80,7 +80,7 @@ DocumentTypes.forEach(function (entry) {
shadowRoot.appendChild(instance);
assert_array_equals(calls, []);
});
- }, 'Inserting a custom element into a detached shadow tree that belongs to a ' + documentName + ' must not enqueue and invoke connectedCallback');
+ }, 'Inserting a custom element into a detached shadow tree that belongs to ' + documentName + ' must not enqueue and invoke connectedCallback');
});
</script>

Powered by Google App Engine
This is Rietveld 408576698