| 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(() => {
|
|
|