OLD | NEW |
1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
2 PASS "window.customElements.define" should exists | 2 PASS "window.customElements.define" should exists |
3 PASS If no arguments, should throw a TypeError | 3 PASS If no arguments, should throw a TypeError |
4 PASS If one argument, should throw a TypeError | 4 PASS If one argument, should throw a TypeError |
5 PASS If constructor is undefined, should throw a TypeError | 5 PASS If constructor is undefined, should throw a TypeError |
6 PASS If constructor is null, should throw a TypeError | 6 PASS If constructor is null, should throw a TypeError |
7 PASS If constructor is object, should throw a TypeError | 7 PASS If constructor is object, should throw a TypeError |
8 PASS If constructor is string, should throw a TypeError | 8 PASS If constructor is string, should throw a TypeError |
9 PASS If constructor is arrow function, should throw a TypeError | 9 PASS If constructor is arrow function, should throw a TypeError |
10 PASS If constructor is method, should throw a TypeError | 10 PASS If constructor is method, should throw a TypeError |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 }" did not throw | 66 }" did not throw |
67 FAIL If extends is nextid, should throw a NotSupportedError assert_throws: funct
ion "() => { | 67 FAIL If extends is nextid, should throw a NotSupportedError assert_throws: funct
ion "() => { |
68 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | 68 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); |
69 }" did not throw | 69 }" did not throw |
70 FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct
ion "() => { | 70 FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct
ion "() => { |
71 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | 71 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); |
72 }" did not throw | 72 }" did not throw |
73 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedErr
or assert_throws: function "() => { | 73 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedErr
or assert_throws: function "() => { |
74 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | 74 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); |
75 }" did not throw | 75 }" did not throw |
76 FAIL If constructor.observedAttributes throws, should rethrow assert_throws: fun
ction "() => { | 76 PASS If constructor.observedAttributes throws, should rethrow |
77 customElements.define('test-define-observedattributes-rethrow', C); | |
78 }" did not throw | |
79 PASS If constructor.prototype throws, should rethrow | 77 PASS If constructor.prototype throws, should rethrow |
80 PASS If Type(constructor.prototype) is undefined, should throw a TypeError | 78 PASS If Type(constructor.prototype) is undefined, should throw a TypeError |
81 PASS If Type(constructor.prototype) is string, should throw a TypeError | 79 PASS If Type(constructor.prototype) is string, should throw a TypeError |
82 PASS If constructor.prototype.connectedCallback throws, should rethrow | 80 PASS If constructor.prototype.connectedCallback throws, should rethrow |
83 PASS If constructor.prototype.connectedCallback is undefined, should succeed | 81 PASS If constructor.prototype.connectedCallback is undefined, should succeed |
84 PASS If constructor.prototype.connectedCallback is function, should succeed | 82 PASS If constructor.prototype.connectedCallback is function, should succeed |
85 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r | 83 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r |
86 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror | 84 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror |
87 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror | 85 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror |
88 PASS If constructor.prototype.disconnectedCallback throws, should rethrow | 86 PASS If constructor.prototype.disconnectedCallback throws, should rethrow |
89 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed | 87 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed |
90 PASS If constructor.prototype.disconnectedCallback is function, should succeed | 88 PASS If constructor.prototype.disconnectedCallback is function, should succeed |
91 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror | 89 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror |
92 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError | 90 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError |
93 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError | 91 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError |
94 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow | 92 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow |
95 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed | 93 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed |
96 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed | 94 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed |
97 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError | 95 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError |
98 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError | 96 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError |
99 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError | 97 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError |
100 Harness: the test ran to completion. | 98 Harness: the test ran to completion. |
101 | 99 |
OLD | NEW |