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-extend-valid-name', class {}, { exten
ds: name }); | |
47 }" did not throw | |
48 PASS If extends is a-a, should throw a NotSupportedError | |
49 PASS If extends is aa-, should throw a NotSupportedError | |
50 PASS If extends is aa-a, should throw a NotSupportedError | |
51 PASS If extends is a-.-_, should throw a NotSupportedError | |
52 PASS If extends is a-0123456789, should throw a NotSupportedError | |
53 PASS If extends is a-漢字, should throw a NotSupportedError | |
54 PASS If extends is a-𠀋, should throw a NotSupportedError | |
55 FAIL If extends is bgsound, should throw a NotSupportedError assert_throws: func
tion "() => { | |
56 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
57 }" did not throw | |
58 FAIL If extends is blink, should throw a NotSupportedError assert_throws: functi
on "() => { | |
59 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
60 }" did not throw | |
61 FAIL If extends is isindex, should throw a NotSupportedError assert_throws: func
tion "() => { | |
62 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
63 }" did not throw | |
64 FAIL If extends is multicol, should throw a NotSupportedError assert_throws: fun
ction "() => { | |
65 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
66 }" did not throw | |
67 FAIL If extends is nextid, should throw a NotSupportedError assert_throws: funct
ion "() => { | |
68 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
69 }" did not throw | |
70 FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct
ion "() => { | |
71 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
72 }" did not throw | |
73 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedErr
or assert_throws: function "() => { | |
74 customElements.define('test-define-extend-' + name, class {}, { extends:
name }); | |
75 }" did not throw | |
76 PASS If constructor.prototype throws, should rethrow | |
77 PASS If Type(constructor.prototype) is undefined, should throw a TypeError | |
78 PASS If Type(constructor.prototype) is string, should throw a TypeError | |
79 PASS If constructor.prototype.connectedCallback throws, should rethrow | |
80 PASS If constructor.prototype.connectedCallback is undefined, should succeed | |
81 PASS If constructor.prototype.connectedCallback is function, should succeed | |
82 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro
r | |
83 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr
ror | |
84 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE
rror | |
85 PASS If constructor.prototype.disconnectedCallback throws, should rethrow | |
86 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed | |
87 PASS If constructor.prototype.disconnectedCallback is function, should succeed | |
88 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE
rror | |
89 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ
eError | |
90 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty
peError | |
91 PASS If constructor.prototype.adoptedCallback throws, should rethrow | |
92 PASS If constructor.prototype.adoptedCallback is undefined, should succeed | |
93 PASS If constructor.prototype.adoptedCallback is function, should succeed | |
94 PASS If constructor.prototype.adoptedCallback is null, should throw a TypeError | |
95 PASS If constructor.prototype.adoptedCallback is object, should throw a TypeErro
r | |
96 PASS If constructor.prototype.adoptedCallback is integer, should throw a TypeErr
or | |
97 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow | |
98 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ
eed | |
99 PASS If constructor.prototype.attributeChangedCallback is function, should succe
ed | |
100 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T
ypeError | |
101 PASS If constructor.prototype.attributeChangedCallback is object, should throw a
TypeError | |
102 PASS If constructor.prototype.attributeChangedCallback is integer, should throw
a TypeError | |
103 Harness: the test ran to completion. | |
104 | |
OLD | NEW |