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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/adopted-callback.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/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>

Powered by Google App Engine
This is Rietveld 408576698