OLD | NEW |
1 Testing document.register() type extension behaviours through createElement(). | 1 Testing document.register() type extension behaviours through createElement(). |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS document.register('x-foo', { prototype: Object.create(HTMLDivElement.protot
ype) }) threw exception Error: InvalidStateError: DOM Exception 11. | 6 PASS document.register('x-foo', { prototype: Object.create(HTMLDivElement.protot
ype) }) threw exception Error: InvalidStateError: DOM Exception 11. |
7 PASS fooNewed.outerHTML is '<x-foo></x-foo>' | 7 PASS fooNewed.outerHTML is '<x-foo></x-foo>' |
8 PASS fooNewed instanceof fooConstructor && fooNewed instanceof HTMLElement is tr
ue | 8 PASS fooNewed instanceof fooConstructor && fooNewed instanceof HTMLElement is tr
ue |
9 PASS fooNewed instanceof HTMLUnknownElement is false | 9 PASS fooNewed instanceof HTMLUnknownElement is false |
10 PASS barNewed.outerHTML is '<input is="x-bar">' | 10 PASS barNewed.outerHTML is '<input is="x-bar">' |
11 PASS barNewed instanceof barConstructor && barNewed instanceof HTMLInputElement
is true | 11 PASS barNewed instanceof barConstructor && barNewed instanceof HTMLInputElement
is true |
12 PASS isFormControl(barNewed) is true | 12 PASS isFormControl(barNewed) is true |
13 PASS bazNewed.outerHTML is '<x-baz></x-baz>' | 13 PASS bazNewed.outerHTML is '<x-baz></x-baz>' |
14 PASS bazNewed instanceof bazConstructor && bazNewed instanceof HTMLElement is tr
ue | 14 PASS bazNewed instanceof bazConstructor && bazNewed instanceof HTMLElement is tr
ue |
15 PASS bazNewed instanceof HTMLUnknownElement is false | 15 PASS bazNewed instanceof HTMLUnknownElement is false |
16 PASS quxNewed instanceof quxConstructor && quxNewed instanceof barConstructor &&
quxNewed instanceof HTMLInputElement is true | 16 PASS quxNewed instanceof quxConstructor && quxNewed instanceof barConstructor &&
quxNewed instanceof HTMLInputElement is true |
17 PASS quxNewed.outerHTML is '<input is="x-qux">' | 17 PASS quxNewed.outerHTML is '<input is="x-qux">' |
18 PASS isFormControl(quxNewed) is true | 18 PASS isFormControl(quxNewed) is true |
19 PASS fooCreated.outerHTML is '<x-foo></x-foo>' | 19 PASS fooCreated.outerHTML is '<x-foo></x-foo>' |
20 PASS fooCreated instanceof fooConstructor is true | 20 PASS fooCreated instanceof fooConstructor is true |
21 PASS barCreated.outerHTML is '<x-bar></x-bar>' | 21 PASS barCreated.outerHTML is '<x-bar></x-bar>' |
22 PASS barCreated instanceof barConstructor is false | 22 PASS barCreated instanceof barConstructor is false |
23 PASS barCreated instanceof HTMLUnknownElement is true | 23 PASS barCreated instanceof HTMLUnknownElement is false |
| 24 PASS barCreated instanceof HTMLElement is true |
24 PASS bazCreated.outerHTML is '<x-baz></x-baz>' | 25 PASS bazCreated.outerHTML is '<x-baz></x-baz>' |
25 PASS bazCreated instanceof bazConstructor is true | 26 PASS bazCreated instanceof bazConstructor is true |
26 PASS bazCreated instanceof HTMLUnknownElement is false | 27 PASS bazCreated instanceof HTMLUnknownElement is false |
27 PASS quxCreated.outerHTML is '<x-qux></x-qux>' | 28 PASS quxCreated.outerHTML is '<x-qux></x-qux>' |
28 PASS quxCreated instanceof quxConstructor is false | 29 PASS quxCreated instanceof quxConstructor is false |
29 PASS quxCreated instanceof HTMLUnknownElement is true | 30 PASS quxCreated instanceof HTMLUnknownElement is false |
| 31 PASS quxCreated instanceof HTMLElement is true |
30 PASS divFooCreated.outerHTML is '<div is="x-foo"></div>' | 32 PASS divFooCreated.outerHTML is '<div is="x-foo"></div>' |
31 PASS divFooCreated instanceof fooConstructor is false | 33 PASS divFooCreated instanceof fooConstructor is false |
32 PASS divFooCreated instanceof HTMLDivElement is true | 34 PASS divFooCreated instanceof HTMLDivElement is true |
33 PASS inputBarCreated.outerHTML is '<input is="x-bar">' | 35 PASS inputBarCreated.outerHTML is '<input is="x-bar">' |
34 PASS inputBarCreated instanceof barConstructor is true | 36 PASS inputBarCreated instanceof barConstructor is true |
35 PASS inputBarCreated instanceof HTMLUnknownElement is false | 37 PASS inputBarCreated instanceof HTMLUnknownElement is false |
36 PASS isFormControl(inputBarCreated) is true | 38 PASS isFormControl(inputBarCreated) is true |
37 PASS divBarCreated.outerHTML is '<div is="x-bar"></div>' | 39 PASS divBarCreated.outerHTML is '<div is="x-bar"></div>' |
38 PASS divBarCreated instanceof barConstructor is false | 40 PASS divBarCreated instanceof barConstructor is false |
39 PASS divBarCreated instanceof HTMLDivElement is true | 41 PASS divBarCreated instanceof HTMLDivElement is true |
40 PASS fooBarCreated.outerHTML is '<x-foo is="x-bar"></x-foo>' | 42 PASS fooBarCreated.outerHTML is '<x-foo is="x-bar"></x-foo>' |
41 PASS fooBarCreated instanceof fooConstructor is true | 43 PASS fooBarCreated instanceof fooConstructor is true |
42 PASS barFooCreated.outerHTML is '<x-bar is="x-foo"></x-bar>' | 44 PASS barFooCreated.outerHTML is '<x-bar is="x-foo"></x-bar>' |
43 PASS barFooCreated instanceof HTMLUnknownElement is true | 45 PASS barFooCreated instanceof HTMLUnknownElement is false |
| 46 PASS barFooCreated instanceof HTMLElement is true |
44 PASS fooCreatedNull.outerHTML is '<x-foo></x-foo>' | 47 PASS fooCreatedNull.outerHTML is '<x-foo></x-foo>' |
45 PASS fooCreatedNull instanceof fooConstructor is true | 48 PASS fooCreatedNull instanceof fooConstructor is true |
46 PASS fooCreatedEmpty.outerHTML is '<x-foo></x-foo>' | 49 PASS fooCreatedEmpty.outerHTML is '<x-foo></x-foo>' |
47 PASS fooCreatedEmpty instanceof fooConstructor is true | 50 PASS fooCreatedEmpty instanceof fooConstructor is true |
48 PASS document.createElement('@invalid', 'x-bar') threw exception Error: InvalidC
haracterError: DOM Exception 5. | 51 PASS document.createElement('@invalid', 'x-bar') threw exception Error: InvalidC
haracterError: DOM Exception 5. |
49 PASS fooCreatedNS.outerHTML is '<x-foo></x-foo>' | 52 PASS fooCreatedNS.outerHTML is '<x-foo></x-foo>' |
50 PASS fooCreatedNS instanceof fooConstructor is true | 53 PASS fooCreatedNS instanceof fooConstructor is true |
51 PASS barCreatedNS.outerHTML is '<input is="x-bar">' | 54 PASS barCreatedNS.outerHTML is '<input is="x-bar">' |
52 PASS barCreatedNS instanceof barConstructor is true | 55 PASS barCreatedNS instanceof barConstructor is true |
53 PASS isFormControl(barCreatedNS) is true | 56 PASS isFormControl(barCreatedNS) is true |
54 PASS document.createElementNS('http://example.com/2013/no-such-namespace', 'xml:
lang', 'x-bar') threw exception Error: NamespaceError: DOM Exception 14. | 57 PASS document.createElementNS('http://example.com/2013/no-such-namespace', 'xml:
lang', 'x-bar') threw exception Error: NamespaceError: DOM Exception 14. |
55 PASS fooParsed instanceof fooConstructor is true | 58 PASS fooParsed instanceof fooConstructor is true |
56 PASS barParsed instanceof barConstructor is true | 59 PASS barParsed instanceof barConstructor is true |
57 PASS isFormControl(barParsed) is true | 60 PASS isFormControl(barParsed) is true |
58 PASS divFooParsed instanceof fooConstructor is false | 61 PASS divFooParsed instanceof fooConstructor is false |
59 PASS divFooParsed instanceof HTMLDivElement is true | 62 PASS divFooParsed instanceof HTMLDivElement is true |
60 PASS namedBarParsed instanceof barConstructor is false | 63 PASS namedBarParsed instanceof barConstructor is false |
61 PASS namedBarParsed instanceof HTMLUnknownElement is true | 64 PASS namedBarParsed instanceof HTMLUnknownElement is false |
| 65 PASS namedBarParsed instanceof HTMLElement is true |
62 PASS divBarParsed instanceof barConstructor is false | 66 PASS divBarParsed instanceof barConstructor is false |
63 PASS divBarParsed instanceof HTMLDivElement is true | 67 PASS divBarParsed instanceof HTMLDivElement is true |
64 PASS successfullyParsed is true | 68 PASS successfullyParsed is true |
65 | 69 |
66 TEST COMPLETE | 70 TEST COMPLETE |
67 | 71 |
OLD | NEW |