| 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 PASS If constructor.observedAttributes throws, should rethrow | 76 FAIL If constructor.observedAttributes throws, should rethrow assert_throws: fun
ction "() => { |
| 77 customElements.define('test-define-observedattributes-rethrow', C); |
| 78 }" did not throw |
| 77 PASS If constructor.prototype throws, should rethrow | 79 PASS If constructor.prototype throws, should rethrow |
| 78 PASS If Type(constructor.prototype) is undefined, should throw a TypeError | 80 PASS If Type(constructor.prototype) is undefined, should throw a TypeError |
| 79 PASS If Type(constructor.prototype) is string, should throw a TypeError | 81 PASS If Type(constructor.prototype) is string, should throw a TypeError |
| 80 PASS If constructor.prototype.connectedCallback throws, should rethrow | 82 PASS If constructor.prototype.connectedCallback throws, should rethrow |
| 81 PASS If constructor.prototype.connectedCallback is undefined, should succeed | 83 PASS If constructor.prototype.connectedCallback is undefined, should succeed |
| 82 PASS If constructor.prototype.connectedCallback is function, should succeed | 84 PASS If constructor.prototype.connectedCallback is function, should succeed |
| 83 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r | 85 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r |
| 84 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror | 86 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror |
| 85 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror | 87 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror |
| 86 PASS If constructor.prototype.disconnectedCallback throws, should rethrow | 88 PASS If constructor.prototype.disconnectedCallback throws, should rethrow |
| 87 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed | 89 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed |
| 88 PASS If constructor.prototype.disconnectedCallback is function, should succeed | 90 PASS If constructor.prototype.disconnectedCallback is function, should succeed |
| 89 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror | 91 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror |
| 90 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError | 92 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError |
| 91 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError | 93 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError |
| 92 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow | 94 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow |
| 93 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed | 95 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed |
| 94 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed | 96 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed |
| 95 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError | 97 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError |
| 96 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError | 98 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError |
| 97 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError | 99 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError |
| 98 Harness: the test ran to completion. | 100 Harness: the test ran to completion. |
| 99 | 101 |
| OLD | NEW |