| OLD | NEW |
| (Empty) | |
| 1 This is a testharness.js-based test. |
| 2 PASS "window.customElements.define" should exists |
| 3 PASS If no arguments, should throw a TypeError |
| 4 PASS If one argument, should throw a TypeError |
| 5 PASS If constructor is undefined, should throw a TypeError |
| 6 PASS If constructor is null, should throw a TypeError |
| 7 PASS If constructor is object, 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 |
| 10 PASS If constructor is method, should throw a TypeError |
| 11 PASS Element names: defining an element named a- should succeed |
| 12 PASS Element names: defining an element named a-a should succeed |
| 13 PASS Element names: defining an element named aa- should succeed |
| 14 PASS Element names: defining an element named aa-a should succeed |
| 15 PASS Element names: defining an element named a-.-_ should succeed |
| 16 PASS Element names: defining an element named a-0123456789 should succeed |
| 17 PASS Element names: defining an element named a-漢字 should succeed |
| 18 PASS Element names: defining an element named a-𠀋 should succeed |
| 19 PASS Element names: defining an element named undefined should throw a SyntaxErr
or |
| 20 PASS Element names: defining an element named null should throw a SyntaxError |
| 21 PASS Element names: defining an element named should throw a SyntaxError |
| 22 PASS Element names: defining an element named - should throw a SyntaxError |
| 23 PASS Element names: defining an element named a should throw a SyntaxError |
| 24 PASS Element names: defining an element named input should throw a SyntaxError |
| 25 PASS Element names: defining an element named mycustomelement should throw a Syn
taxError |
| 26 PASS Element names: defining an element named A should throw a SyntaxError |
| 27 PASS Element names: defining an element named A- should throw a SyntaxError |
| 28 PASS Element names: defining an element named 0- should throw a SyntaxError |
| 29 PASS Element names: defining an element named a-A should throw a SyntaxError |
| 30 PASS Element names: defining an element named a-Z should throw a SyntaxError |
| 31 PASS Element names: defining an element named A-a should throw a SyntaxError |
| 32 PASS Element names: defining an element named a-a× should throw a SyntaxError |
| 33 PASS Element names: defining an element named a-a should throw a SyntaxError |
| 34 PASS Element names: defining an element named a-a should throw a SyntaxError |
| 35 PASS Element names: defining an element named annotation-xml should throw a Synt
axError |
| 36 PASS Element names: defining an element named color-profile should throw a Synta
xError |
| 37 PASS Element names: defining an element named font-face should throw a SyntaxErr
or |
| 38 PASS Element names: defining an element named font-face-src should throw a Synta
xError |
| 39 PASS Element names: defining an element named font-face-uri should throw a Synta
xError |
| 40 PASS Element names: defining an element named font-face-format should throw a Sy
ntaxError |
| 41 PASS Element names: defining an element named font-face-name should throw a Synt
axError |
| 42 PASS Element names: defining an element named missing-glyph should throw a Synta
xError |
| 43 PASS If the name is already defined, should throw a NotSupportedError |
| 44 PASS If the constructor is already defined, should throw a NotSupportedError |
| 45 FAIL If extends is a-, should throw a NotSupportedError assert_throws: function
"() => { |
| 46 customElements.define('test-define-exten..." did not throw |
| 47 PASS If extends is a-a, should throw a NotSupportedError |
| 48 PASS If extends is aa-, should throw a NotSupportedError |
| 49 PASS If extends is aa-a, should throw a NotSupportedError |
| 50 PASS If extends is a-.-_, should throw a NotSupportedError |
| 51 PASS If extends is a-0123456789, should throw a NotSupportedError |
| 52 PASS If extends is a-漢字, should throw a NotSupportedError |
| 53 PASS If extends is a-𠀋, should throw a NotSupportedError |
| 54 FAIL If extends is bgsound, should throw a NotSupportedError assert_throws: func
tion "() => { |
| 55 customElements.define('test-define-exten..." did not throw |
| 56 FAIL If extends is blink, should throw a NotSupportedError assert_throws: functi
on "() => { |
| 57 customElements.define('test-define-exten..." did not throw |
| 58 FAIL If extends is isindex, should throw a NotSupportedError assert_throws: func
tion "() => { |
| 59 customElements.define('test-define-exten..." did not throw |
| 60 FAIL If extends is multicol, should throw a NotSupportedError assert_throws: fun
ction "() => { |
| 61 customElements.define('test-define-exten..." did not throw |
| 62 FAIL If extends is nextid, should throw a NotSupportedError assert_throws: funct
ion "() => { |
| 63 customElements.define('test-define-exten..." did not throw |
| 64 FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct
ion "() => { |
| 65 customElements.define('test-define-exten..." did not throw |
| 66 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedErr
or assert_throws: function "() => { |
| 67 customElements.define('test-define-exten..." did not throw |
| 68 PASS If constructor.prototype throws, should rethrow |
| 69 PASS If Type(constructor.prototype) is undefined, should throw a TypeError |
| 70 PASS If Type(constructor.prototype) is string, should throw a TypeError |
| 71 FAIL If constructor.prototype.observedAttributes throws, should rethrow assert_t
hrows: function "() => { |
| 72 customElements.define('test-define-const..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"[object Object]" ("rethrown") |
| 73 FAIL If constructor.prototype.connectedCallback throws, should rethrow assert_th
rows: function "() => { |
| 74 customElements.define('test-define-const..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"[object Object]" ("rethrown") |
| 75 FAIL If constructor.prototype.disconnectedCallback throws, should rethrow assert
_throws: function "() => { |
| 76 customElements.define('test-define-const..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"[object Object]" ("rethrown") |
| 77 FAIL If constructor.prototype.attributeChangedCallback throws, should rethrow as
sert_throws: function "() => { |
| 78 customElements.define('test-define-const..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"[object Object]" ("rethrown") |
| 79 FAIL If constructor.prototype.connectedCallback is undefined, should success Fai
led to execute 'define' on 'CustomElementsRegistry': "test-define-constructor-pr
ototype-connectedCallback" is not a valid custom element name |
| 80 FAIL If constructor.prototype.connectedCallback is null, should throw a TypeErro
r assert_throws: function "() => { |
| 81 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 82 FAIL If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror assert_throws: function "() => { |
| 83 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 84 FAIL If constructor.prototype.disconnectedCallback is undefined, should success
Failed to execute 'define' on 'CustomElementsRegistry': "test-define-constructor
-prototype-disconnectedCallback" is not a valid custom element name |
| 85 FAIL If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror assert_throws: function "() => { |
| 86 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 87 FAIL If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError assert_throws: function "() => { |
| 88 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 89 FAIL If constructor.prototype.attributeChangedCallback is undefined, should succ
ess Failed to execute 'define' on 'CustomElementsRegistry': "test-define-constru
ctor-prototype-attributeChangedCallback" is not a valid custom element name |
| 90 FAIL If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError assert_throws: function "() => { |
| 91 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 92 FAIL If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError assert_throws: function "() => { |
| 93 customElements.define('test-define-con..." threw object "SyntaxError:
Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object
"TypeError" ("TypeError") |
| 94 Harness: the test ran to completion. |
| 95 |
| OLD | NEW |