| 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 document.register('foo', createRegisterParamters()) threw exception Error:
InvalidCharacterError: DOM Exception 5. | 6 PASS document.register('foo', createRegisterParamters()) threw exception Invalid
CharacterError: An invalid or illegal character was specified, such as in an XML
name.. |
| 7 PASS document.register('xfoo', createRegisterParamters()) threw exception Error:
InvalidCharacterError: DOM Exception 5. | 7 PASS document.register('xfoo', createRegisterParamters()) threw exception Invali
dCharacterError: An invalid or illegal character was specified, such as in an XM
L name.. |
| 8 PASS document.register('missing-glyph', createRegisterParamters()) threw excepti
on Error: InvalidCharacterError: DOM Exception 5. | 8 PASS document.register('missing-glyph', createRegisterParamters()) threw excepti
on InvalidCharacterError: An invalid or illegal character was specified, such as
in an XML name.. |
| 9 PASS typeof fooConstructor is 'function' | 9 PASS typeof fooConstructor is 'function' |
| 10 PASS fooConstructor.prototype.__proto__ is HTMLElement.prototype | 10 PASS fooConstructor.prototype.__proto__ is HTMLElement.prototype |
| 11 PASS fooConstructor.prototype.thisIsPrototype is true | 11 PASS fooConstructor.prototype.thisIsPrototype is true |
| 12 PASS document.register('x-foo', createRegisterParamters()) threw exception Error
: InvalidStateError: DOM Exception 11. | 12 PASS document.register('x-foo', createRegisterParamters()) threw exception Inval
idStateError: An attempt was made to use an object that is not, or is no longer,
usable.. |
| 13 PASS document.register('X-FOO', createRegisterParamters()) threw exception Error
: InvalidStateError: DOM Exception 11. | 13 PASS document.register('X-FOO', createRegisterParamters()) threw exception Inval
idStateError: An attempt was made to use an object that is not, or is no longer,
usable.. |
| 14 PASS document.register('x-bad-a', { prototype: HTMLElement.prototype }) threw ex
ception Error: InvalidStateError: DOM Exception 11. | 14 PASS document.register('x-bad-a', { prototype: HTMLElement.prototype }) threw ex
ception InvalidStateError: An attempt was made to use an object that is not, or
is no longer, usable.. |
| 15 PASS document.register('x-bad-b', { prototype: {} }) threw exception Error: Inva
lidStateError: DOM Exception 11. | 15 PASS document.register('x-bad-b', { prototype: {} }) threw exception InvalidStat
eError: An attempt was made to use an object that is not, or is no longer, usabl
e.. |
| 16 PASS document.register('x-bad-c', { prototype: Object.create(Document.prototype)
}) threw exception Error: InvalidStateError: DOM Exception 11. | 16 PASS document.register('x-bad-c', { prototype: Object.create(Document.prototype)
}) threw exception InvalidStateError: An attempt was made to use an object that
is not, or is no longer, usable.. |
| 17 PASS fooConstructor() threw exception TypeError: DOM object constructor cannot b
e called as a function.. | 17 PASS fooConstructor() threw exception TypeError: DOM object constructor cannot b
e called as a function.. |
| 18 PASS createdFoo.__proto__ is fooConstructor.prototype | 18 PASS createdFoo.__proto__ is fooConstructor.prototype |
| 19 PASS createdFoo.constructor is fooConstructor | 19 PASS createdFoo.constructor is fooConstructor |
| 20 PASS createdFoo.tagName is 'X-FOO' | 20 PASS createdFoo.tagName is 'X-FOO' |
| 21 PASS createdFoo.textContent is 'Hello' | 21 PASS createdFoo.textContent is 'Hello' |
| 22 PASS createdFoo.lastChild is childDiv | 22 PASS createdFoo.lastChild is childDiv |
| 23 PASS parsedFoo.__proto__ is fooConstructor.prototype | 23 PASS parsedFoo.__proto__ is fooConstructor.prototype |
| 24 PASS parsedFoo.tagName is 'X-FOO' | 24 PASS parsedFoo.tagName is 'X-FOO' |
| 25 PASS parsedFoo.someProperty is container.firstChild.someProperty | 25 PASS parsedFoo.someProperty is container.firstChild.someProperty |
| 26 PASS barConstructor !== fooConstructor is true | 26 PASS barConstructor !== fooConstructor is true |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 PASS (new (document.register('yz-bar', createRegisterParamters()))()).tagName is
'YZ-BAR' | 40 PASS (new (document.register('yz-bar', createRegisterParamters()))()).tagName is
'YZ-BAR' |
| 41 PASS (new (document.register('y-z-bar', createRegisterParamters()))()).tagName i
s 'Y-Z-BAR' | 41 PASS (new (document.register('y-z-bar', createRegisterParamters()))()).tagName i
s 'Y-Z-BAR' |
| 42 PASS (new (document.register('y--bar', createRegisterParamters()))()).tagName is
'Y--BAR' | 42 PASS (new (document.register('y--bar', createRegisterParamters()))()).tagName is
'Y--BAR' |
| 43 PASS (new fooConstructor).tagName is 'X-FOO' | 43 PASS (new fooConstructor).tagName is 'X-FOO' |
| 44 PASS (new barConstructor).tagName is 'X-BAR' | 44 PASS (new barConstructor).tagName is 'X-BAR' |
| 45 PASS (new bazConstructor).tagName is 'X-BAZ' | 45 PASS (new bazConstructor).tagName is 'X-BAZ' |
| 46 PASS successfullyParsed is true | 46 PASS successfullyParsed is true |
| 47 | 47 |
| 48 TEST COMPLETE | 48 TEST COMPLETE |
| 49 | 49 |
| OLD | NEW |