OLD | NEW |
1 Testing document.register() basic behaviors. | 1 Testing document.register() basic behaviors. |
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 typeof fooConstructor is "function" | 6 PASS typeof fooConstructor is "function" |
7 PASS fooConstructor.prototype.__proto__ is HTMLElement.prototype | 7 PASS fooConstructor.prototype.__proto__ is HTMLElement.prototype |
8 PASS fooConstructor.prototype.thisIsPrototype is true | 8 PASS fooConstructor.prototype.thisIsPrototype is true |
9 PASS document.register("x-bad-a", HTMLElement) threw exception NotSupportedError
: Failed to call 'register' on 'Document' for type 'x-bad-a': prototype is alrea
dy in-use as an interface prototype object.. | 9 PASS document.register("x-bad-a", HTMLElement) threw exception NotSupportedError
: Failed to call 'register' on 'Document' for type 'x-bad-a': prototype is alrea
dy in-use as an interface prototype object.. |
10 PASS document.register("x-bad-b", fooConstructor) threw exception NotSupportedEr
ror: Failed to call 'register' on 'Document' for type 'x-bad-b': prototype is al
ready in-use as an interface prototype object.. | 10 PASS document.register("x-bad-b", fooConstructor) threw exception NotSupportedEr
ror: Failed to call 'register' on 'Document' for type 'x-bad-b': prototype is al
ready in-use as an interface prototype object.. |
11 PASS document.register("x-bad-c", { prototype: proto }) threw exception NotSuppo
rtedError: Failed to call 'register' on 'Document' for type 'x-bad-c': prototype
constructor property is not configurable.. | 11 PASS document.register("x-bad-c", { prototype: proto }) threw exception NotSuppo
rtedError: Failed to call 'register' on 'Document' for type 'x-bad-c': prototype
constructor property is not configurable.. |
12 PASS document.register("x-bad-d", { prototype: {} }) threw exception InvalidStat
eError: Failed to call 'register' on 'Document' for type 'x-bad-d': the prototyp
e does not extend an HTML or SVG element.. | |
13 PASS document.register("x-bad-e", { prototype: Object.create(Document.prototype)
}) threw exception InvalidStateError: Failed to call 'register' on 'Document' f
or type 'x-bad-e': the prototype does not extend an HTML or SVG element.. | |
14 PASS fooConstructor() threw exception TypeError: DOM object constructor cannot b
e called as a function.. | 12 PASS fooConstructor() threw exception TypeError: DOM object constructor cannot b
e called as a function.. |
15 PASS createdFoo.__proto__ is fooConstructor.prototype | 13 PASS createdFoo.__proto__ is fooConstructor.prototype |
16 PASS createdFoo.constructor is fooConstructor | 14 PASS createdFoo.constructor is fooConstructor |
17 PASS createdFoo.tagName is "X-FOO" | 15 PASS createdFoo.tagName is "X-FOO" |
18 PASS createdFoo.textContent is "Hello" | 16 PASS createdFoo.textContent is "Hello" |
19 PASS createdFoo.lastChild is childDiv | 17 PASS createdFoo.lastChild is childDiv |
20 PASS parsedFoo.__proto__ is fooConstructor.prototype | 18 PASS parsedFoo.__proto__ is fooConstructor.prototype |
21 PASS parsedFoo.tagName is "X-FOO" | 19 PASS parsedFoo.tagName is "X-FOO" |
22 PASS parsedFoo.someProperty is container.firstChild.someProperty | 20 PASS parsedFoo.someProperty is container.firstChild.someProperty |
23 PASS barConstructor !== fooConstructor is true | 21 PASS barConstructor !== fooConstructor is true |
24 PASS createdBar.tagName is "X-BAR" | 22 PASS createdBar.tagName is "X-BAR" |
25 PASS createdBaz.tagName is "X-BAZ" | 23 PASS createdBaz.tagName is "X-BAZ" |
26 PASS createdBaz.thisIsPrototype is true | 24 PASS createdBaz.thisIsPrototype is true |
27 PASS createdBaz.thisIsAlsoPrototype is true | 25 PASS createdBaz.thisIsAlsoPrototype is true |
28 PASS createdUpperBar.constructor is barConstructor | 26 PASS createdUpperBar.constructor is barConstructor |
29 PASS createdUpperBar.tagName is "X-BAR" | 27 PASS createdUpperBar.tagName is "X-BAR" |
30 PASS createdMixedBar.constructor is barConstructor | 28 PASS createdMixedBar.constructor is barConstructor |
31 PASS createdMixedBar.tagName is "X-BAR" | 29 PASS createdMixedBar.tagName is "X-BAR" |
32 PASS container.firstChild.constructor is barConstructor | 30 PASS container.firstChild.constructor is barConstructor |
33 PASS container.firstChild.tagName is "X-BAR" | 31 PASS container.firstChild.tagName is "X-BAR" |
34 PASS container.lastChild.constructor is barConstructor | 32 PASS container.lastChild.constructor is barConstructor |
35 PASS container.lastChild.tagName is "X-BAR" | 33 PASS container.lastChild.tagName is "X-BAR" |
36 PASS (new fooConstructor).tagName is "X-FOO" | 34 PASS (new fooConstructor).tagName is "X-FOO" |
37 PASS (new barConstructor).tagName is "X-BAR" | 35 PASS (new barConstructor).tagName is "X-BAR" |
38 PASS (new bazConstructor).tagName is "X-BAZ" | 36 PASS (new bazConstructor).tagName is "X-BAZ" |
39 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
40 | 38 |
41 TEST COMPLETE | 39 TEST COMPLETE |
42 | 40 |
OLD | NEW |