| 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 FAIL If constructor.prototype.connectedCallback throws, should rethrow assert_th
rows: function "() => { | 80 PASS If constructor.prototype.connectedCallback throws, should rethrow |
| 83 customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C); | |
| 84 }" did not throw | |
| 85 PASS If constructor.prototype.connectedCallback is undefined, should succeed | 81 PASS If constructor.prototype.connectedCallback is undefined, should succeed |
| 86 PASS If constructor.prototype.connectedCallback is function, should succeed | 82 PASS If constructor.prototype.connectedCallback is function, should succeed |
| 87 FAIL If constructor.prototype.connectedCallback is null, should throw a TypeErro
r assert_throws: function "() => { | 83 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r |
| 88 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | 84 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror |
| 89 }" did not throw | 85 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror |
| 90 FAIL If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror assert_throws: function "() => { | 86 PASS If constructor.prototype.disconnectedCallback throws, should rethrow |
| 91 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 92 }" did not throw | |
| 93 FAIL If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror assert_throws: function "() => { | |
| 94 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 95 }" did not throw | |
| 96 FAIL If constructor.prototype.disconnectedCallback throws, should rethrow assert
_throws: function "() => { | |
| 97 customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C); | |
| 98 }" did not throw | |
| 99 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed | 87 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed |
| 100 PASS If constructor.prototype.disconnectedCallback is function, should succeed | 88 PASS If constructor.prototype.disconnectedCallback is function, should succeed |
| 101 FAIL If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror assert_throws: function "() => { | 89 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror |
| 102 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | 90 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError |
| 103 }" did not throw | 91 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError |
| 104 FAIL If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError assert_throws: function "() => { | 92 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow |
| 105 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 106 }" did not throw | |
| 107 FAIL If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError assert_throws: function "() => { | |
| 108 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 109 }" did not throw | |
| 110 FAIL If constructor.prototype.attributeChangedCallback throws, should rethrow as
sert_throws: function "() => { | |
| 111 customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C); | |
| 112 }" did not throw | |
| 113 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed | 93 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed |
| 114 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed | 94 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed |
| 115 FAIL If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError assert_throws: function "() => { | 95 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError |
| 116 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | 96 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError |
| 117 }" did not throw | 97 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError |
| 118 FAIL If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError assert_throws: function "() => { | |
| 119 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 120 }" did not throw | |
| 121 FAIL If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError assert_throws: function "() => { | |
| 122 customElements.define(`test-define-${name.toLowerCase()}-${data.name
}`, C); | |
| 123 }" did not throw | |
| 124 Harness: the test ran to completion. | 98 Harness: the test ran to completion. |
| 125 | 99 |
| OLD | NEW |