| Index: third_party/WebKit/LayoutTests/custom-elements/spec/define-builtin-element.html
|
| diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/define-builtin-element.html b/third_party/WebKit/LayoutTests/custom-elements/spec/define-builtin-element.html
|
| index 3635a8bc1c31fa803b257d14903259a66fd3fdd6..02567ba6e050e62a585788e33721b34793729e45 100644
|
| --- a/third_party/WebKit/LayoutTests/custom-elements/spec/define-builtin-element.html
|
| +++ b/third_party/WebKit/LayoutTests/custom-elements/spec/define-builtin-element.html
|
| @@ -24,7 +24,7 @@ test_with_window((w) => {
|
| }, `having valid custon element name element interface (${val}) ` +
|
| 'for extends should throw a NotSupportedError')
|
| });
|
| -}, 'Element interface for extends is not valid custom element name');
|
| +}, 'Element interface for extends is not valid custom element name should throw error');
|
|
|
| test_with_window((w) => {
|
| class A extends w.HTMLButtonElement {}
|
| @@ -43,12 +43,12 @@ test_with_window((w) => {
|
| }, `having element interface for extends (${val}) undefined in specs` +
|
| ' should throw a NotSupportedError');
|
| });
|
| -}, 'Element interface for extends defined in specification');
|
| +}, 'Element interface for extends not defined in specification should throw error');
|
|
|
| test_with_window((w) => {
|
| - class A extends w.HTMLButtonElement {}
|
| - w.customElements.define('defined-name', A, { extends: 'button' });
|
| - assert_equals(new A().localName, 'button',
|
| + class A extends w.HTMLDivElement {}
|
| + w.customElements.define('defined-name', A, { extends: 'div' });
|
| + assert_equals(new A().localName, 'div',
|
| 'localName should be element interface for extends');
|
| assert_not_equals(new A().localName, 'defined-name',
|
| 'localName should not be defined-name');
|
|
|