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

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

Issue 2022203002: Import wpt@d510ec1abc30eee4c855c13842bc2f0dfa791f8b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Message changed by testharness.js update Created 4 years, 6 months 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
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 25 matching lines...) Expand all
36 PASS Element names: defining an element named color-profile should throw a Synta xError 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 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 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 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 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 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 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 43 PASS If the name is already defined, should throw a NotSupportedError
44 PASS If the constructor 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 "() => { 45 FAIL If extends is a-, should throw a NotSupportedError assert_throws: function "() => {
46 customElements.define('test-define-exten..." did not throw 46 customElements.define('test-define-extend-valid-name', class {}, { exten ds: name });
47 }" did not throw
47 PASS If extends is a-a, should throw a NotSupportedError 48 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-, should throw a NotSupportedError
49 PASS If extends is aa-a, should throw a NotSupportedError 50 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-.-_, should throw a NotSupportedError
51 PASS If extends is a-0123456789, should throw a NotSupportedError 52 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
53 PASS If extends is a-𠀋, should throw a NotSupportedError 54 PASS If extends is a-𠀋, should throw a NotSupportedError
54 FAIL If extends is bgsound, should throw a NotSupportedError assert_throws: func tion "() => { 55 FAIL If extends is bgsound, should throw a NotSupportedError assert_throws: func tion "() => {
55 customElements.define('test-define-exten..." did not throw 56 customElements.define('test-define-extend-' + name, class {}, { extends: name });
57 }" did not throw
56 FAIL If extends is blink, should throw a NotSupportedError assert_throws: functi on "() => { 58 FAIL If extends is blink, should throw a NotSupportedError assert_throws: functi on "() => {
57 customElements.define('test-define-exten..." did not throw 59 customElements.define('test-define-extend-' + name, class {}, { extends: name });
60 }" did not throw
58 FAIL If extends is isindex, should throw a NotSupportedError assert_throws: func tion "() => { 61 FAIL If extends is isindex, should throw a NotSupportedError assert_throws: func tion "() => {
59 customElements.define('test-define-exten..." did not throw 62 customElements.define('test-define-extend-' + name, class {}, { extends: name });
63 }" did not throw
60 FAIL If extends is multicol, should throw a NotSupportedError assert_throws: fun ction "() => { 64 FAIL If extends is multicol, should throw a NotSupportedError assert_throws: fun ction "() => {
61 customElements.define('test-define-exten..." did not throw 65 customElements.define('test-define-extend-' + name, class {}, { extends: name });
66 }" did not throw
62 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 "() => {
63 customElements.define('test-define-exten..." did not throw 68 customElements.define('test-define-extend-' + name, class {}, { extends: name });
69 }" did not throw
64 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 "() => {
65 customElements.define('test-define-exten..." did not throw 71 customElements.define('test-define-extend-' + name, class {}, { extends: name });
72 }" did not throw
66 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 "() => {
67 customElements.define('test-define-exten..." did not throw 74 customElements.define('test-define-extend-' + name, class {}, { extends: name });
75 }" did not throw
76 FAIL If constructor.observedAttributes throws, should rethrow assert_throws: fun ction "() => {
77 customElements.define('test-define-observedattributes-rethrow', C);
78 }" did not throw
68 PASS If constructor.prototype throws, should rethrow 79 PASS If constructor.prototype throws, should rethrow
69 PASS If Type(constructor.prototype) is undefined, should throw a TypeError 80 PASS If Type(constructor.prototype) is undefined, should throw a TypeError
70 PASS If Type(constructor.prototype) is string, should throw a TypeError 81 PASS If Type(constructor.prototype) is string, should throw a TypeError
71 FAIL If constructor.prototype.observedAttributes throws, should rethrow assert_t hrows: function "() => { 82 FAIL If constructor.prototype.connectedCallback throws, should rethrow assert_th rows: function "() => {
72 customElements.define('test-define-const..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "[object Object]" ("rethrown") 83 customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C);
73 FAIL If constructor.prototype.connectedCallback throws, should rethrow assert_th rows: function "() => { 84 }" did not throw
74 customElements.define('test-define-const..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "[object Object]" ("rethrown") 85 PASS If constructor.prototype.connectedCallback is undefined, should succeed
75 FAIL If constructor.prototype.disconnectedCallback throws, should rethrow assert _throws: function "() => { 86 PASS If constructor.prototype.connectedCallback is function, should succeed
76 customElements.define('test-define-const..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "[object Object]" ("rethrown") 87 FAIL If constructor.prototype.connectedCallback is null, should throw a TypeErro r assert_throws: function "() => {
77 FAIL If constructor.prototype.attributeChangedCallback throws, should rethrow as sert_throws: function "() => { 88 customElements.define(`test-define-${name.toLowerCase()}-${data.name }`, C);
78 customElements.define('test-define-const..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "[object Object]" ("rethrown") 89 }" did not throw
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 90 FAIL If constructor.prototype.connectedCallback is object, should throw a TypeEr ror assert_throws: function "() => {
80 FAIL If constructor.prototype.connectedCallback is null, should throw a TypeErro r assert_throws: function "() => { 91 customElements.define(`test-define-${name.toLowerCase()}-${data.name }`, C);
81 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 92 }" did not throw
82 FAIL If constructor.prototype.connectedCallback is object, should throw a TypeEr ror assert_throws: function "() => { 93 FAIL If constructor.prototype.connectedCallback is integer, should throw a TypeE rror assert_throws: function "() => {
83 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 94 customElements.define(`test-define-${name.toLowerCase()}-${data.name }`, C);
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 95 }" did not throw
85 FAIL If constructor.prototype.disconnectedCallback is null, should throw a TypeE rror assert_throws: function "() => { 96 FAIL If constructor.prototype.disconnectedCallback throws, should rethrow assert _throws: function "() => {
86 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 97 customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C);
87 FAIL If constructor.prototype.disconnectedCallback is object, should throw a Typ eError assert_throws: function "() => { 98 }" did not throw
88 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 99 PASS If constructor.prototype.disconnectedCallback is undefined, should succeed
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 100 PASS If constructor.prototype.disconnectedCallback is function, should succeed
90 FAIL If constructor.prototype.attributeChangedCallback is null, should throw a T ypeError assert_throws: function "() => { 101 FAIL If constructor.prototype.disconnectedCallback is null, should throw a TypeE rror assert_throws: function "() => {
91 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 102 customElements.define(`test-define-${name.toLowerCase()}-${data.name }`, C);
92 FAIL If constructor.prototype.attributeChangedCallback is object, should throw a TypeError assert_throws: function "() => { 103 }" did not throw
93 customElements.define('test-define-con..." threw object "SyntaxError: Failed to execute 'define' on 'CustomElement..." ("SyntaxError") expected object "TypeError" ("TypeError") 104 FAIL If constructor.prototype.disconnectedCallback is object, should throw a Typ eError assert_throws: function "() => {
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
114 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 "() => {
116 customElements.define(`test-define-${name.toLowerCase()}-${data.name }`, C);
117 }" did not throw
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
94 Harness: the test ran to completion. 124 Harness: the test ran to completion.
95 125
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698