Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-element-registry/define-expected.txt

Issue 2424693002: Custom Elements: Complete HTMLConstructor Algorithm (Closed)
Patch Set: Redefinition guard Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 PASS If extends is a-, should throw a NotSupportedError
46 PASS If extends is a-a, should throw a NotSupportedError
47 PASS If extends is aa-, should throw a NotSupportedError
48 PASS If extends is aa-a, should throw a NotSupportedError
49 PASS If extends is a-.-_, should throw a NotSupportedError
50 PASS If extends is a-0123456789, should throw a NotSupportedError
51 PASS If extends is a-漢字, should throw a NotSupportedError
52 PASS If extends is a-𠀋, should throw a NotSupportedError
53 FAIL If extends is bgsound, should throw a NotSupportedError assert_throws: func tion "() => {
54 customElements.define('test-define-extend-' + name, class {}, { extends: name });
55 }" did not throw
56 FAIL If extends is blink, should throw a NotSupportedError assert_throws: functi on "() => {
57 customElements.define('test-define-extend-' + name, class {}, { extends: name });
58 }" did not throw
59 FAIL If extends is isindex, should throw a NotSupportedError assert_throws: func tion "() => {
60 customElements.define('test-define-extend-' + name, class {}, { extends: name });
61 }" did not throw
62 FAIL If extends is multicol, should throw a NotSupportedError assert_throws: fun ction "() => {
63 customElements.define('test-define-extend-' + name, class {}, { extends: name });
64 }" did not throw
65 FAIL If extends is nextid, should throw a NotSupportedError assert_throws: funct ion "() => {
66 customElements.define('test-define-extend-' + name, class {}, { extends: name });
67 }" did not throw
68 FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct ion "() => {
69 customElements.define('test-define-extend-' + name, class {}, { extends: name });
70 }" did not throw
71 FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedErr or assert_throws: function "() => {
72 customElements.define('test-define-extend-' + name, class {}, { extends: name });
73 }" did not throw
74 PASS If constructor.prototype throws, should rethrow
75 PASS If Type(constructor.prototype) is undefined, should throw a TypeError
76 PASS If Type(constructor.prototype) is string, should throw a TypeError
77 PASS If constructor.prototype.connectedCallback throws, should rethrow
78 PASS If constructor.prototype.connectedCallback is undefined, should succeed
79 PASS If constructor.prototype.connectedCallback is function, should succeed
80 PASS If constructor.prototype.connectedCallback is null, should throw a TypeErro r
81 PASS If constructor.prototype.connectedCallback is object, should throw a TypeEr ror
82 PASS If constructor.prototype.connectedCallback is integer, should throw a TypeE rror
83 PASS If constructor.prototype.disconnectedCallback throws, should rethrow
84 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed
85 PASS If constructor.prototype.disconnectedCallback is function, should succeed
86 PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeE rror
87 PASS If constructor.prototype.disconnectedCallback is object, should throw a Typ eError
88 PASS If constructor.prototype.disconnectedCallback is integer, should throw a Ty peError
89 PASS If constructor.prototype.adoptedCallback throws, should rethrow
90 PASS If constructor.prototype.adoptedCallback is undefined, should succeed
91 PASS If constructor.prototype.adoptedCallback is function, should succeed
92 PASS If constructor.prototype.adoptedCallback is null, should throw a TypeError
93 PASS If constructor.prototype.adoptedCallback is object, should throw a TypeErro r
94 PASS If constructor.prototype.adoptedCallback is integer, should throw a TypeErr or
95 PASS If constructor.prototype.attributeChangedCallback throws, should rethrow
96 PASS If constructor.prototype.attributeChangedCallback is undefined, should succ eed
97 PASS If constructor.prototype.attributeChangedCallback is function, should succe ed
98 PASS If constructor.prototype.attributeChangedCallback is null, should throw a T ypeError
99 PASS If constructor.prototype.attributeChangedCallback is object, should throw a TypeError
100 PASS If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError
101 Harness: the test ran to completion.
102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698