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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html

Issue 2239333003: W3C auto test importer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'Modifies TestExpectations and/or downloads new baselines for tests' Created 4 years, 4 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/custom-elements-registry/define.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
index 76ab2adfd7454080ea059fdebef9f457d7585818..ae7584f419ac4da5206c87f66d1f9b2c0d2b22e4 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.html
@@ -214,24 +214,18 @@
});
}, 'If Type(constructor.prototype) is string, should throw a TypeError');
- // 13.4. Let connectedCallbackValue be Get(prototype, "connectedCallback").
- // Rethrow any exceptions.
- // 13.5. If connectedCallbackValue is not undefined, then set connectedCallback
- // to the result of converting connectedCallbackValue to the Web IDL Function callback type.
- // Rethrow any exceptions.
- // 13.6. Let disconnectedCallbackValue be Get(prototype, "disconnectedCallback").
- // Rethrow any exceptions.
- // 13.7. If disconnectedCallbackValue is not undefined, then set disconnectedCallback
- // to the result of converting disconnectedCallbackValue to the Web IDL Function callback type.
- // Rethrow any exceptions.
- // 13.8. Let attributeChangedCallbackValue be Get(prototype, "attributeChangedCallback").
- // Rethrow any exceptions.
- // 13.9. If attributeChangedCallbackValue is not undefined, then set attributeChangedCallback
- // to the result of converting attributeChangedCallbackValue to the Web IDL Function callback type.
- // Rethrow any exceptions.
+ // 13.3. Let lifecycleCallbacks be a map with the four keys "connectedCallback",
+ // "disconnectedCallback", "adoptedCallback", and "attributeChangedCallback",
+ // each of which belongs to an entry whose value is null.
+ // 13.4. For each of the four keys callbackName in lifecycleCallbacks:
+ // 13.4.1. Let callbackValue be Get(prototype, callbackName). Rethrow any exceptions.
+ // 13.4.2. If callbackValue is not undefined, then set the value of the entry in
+ // lifecycleCallbacks with key callbackName to the result of converting callbackValue
+ // to the Web IDL Function callback type. Rethrow any exceptions from the conversion.
[
'connectedCallback',
'disconnectedCallback',
+ 'adoptedCallback',
'attributeChangedCallback',
].forEach(name => {
test(() => {

Powered by Google App Engine
This is Rietveld 408576698