| OLD | NEW |
| 1 This tests the constructor for the TrackEvent DOM class. | 1 This tests the constructor for the TrackEvent DOM class. |
| 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 | 6 |
| 7 *** No initializer passed *** | 7 *** No initializer passed *** |
| 8 PASS new TrackEvent('TrackEvent').bubbles is false | 8 PASS new TrackEvent('TrackEvent').bubbles is false |
| 9 PASS new TrackEvent('TrackEvent').cancelable is false | 9 PASS new TrackEvent('TrackEvent').cancelable is false |
| 10 PASS new TrackEvent('TrackEvent').track is null | 10 PASS new TrackEvent('TrackEvent').track is null |
| 11 | 11 |
| 12 *** Bubbles and cancelable true, track is missing *** | 12 *** Bubbles and cancelable true, track is missing *** |
| 13 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).bubbles i
s true | 13 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).bubbles i
s true |
| 14 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).cancelabl
e is true | 14 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).cancelabl
e is true |
| 15 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).track is
null | 15 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).track is
null |
| 16 | 16 |
| 17 *** Bubbles and cancelable true, invalid track *** | 17 *** Bubbles and cancelable true, invalid track *** |
| 18 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).bubbles threw exception TypeError: Failed to construct 'TrackEve
nt': The 'track' property does not have the expected type.. | 18 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).bubbles threw exception TypeError: Failed to construct 'TrackEve
nt': The 'track' property does not have a object type.. |
| 19 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).cancelable threw exception TypeError: Failed to construct 'Track
Event': The 'track' property does not have the expected type.. | 19 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).cancelable threw exception TypeError: Failed to construct 'Track
Event': The 'track' property does not have a object type.. |
| 20 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).track threw exception TypeError: Failed to construct 'TrackEvent
': The 'track' property does not have the expected type.. | 20 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTML
TrackElement }).track threw exception TypeError: Failed to construct 'TrackEvent
': The 'track' property does not have a object type.. |
| 21 | 21 |
| 22 *** Initialize 'track' with a invalid values *** | 22 *** Initialize 'track' with a invalid values *** |
| 23 PASS new TrackEvent('TrackEvent', { track: 10 }).track threw exception TypeError
: Failed to construct 'TrackEvent': The 'track' property does not have the expec
ted type.. | 23 PASS new TrackEvent('TrackEvent', { track: 10 }).track threw exception TypeError
: Failed to construct 'TrackEvent': The 'track' property does not have a object
type.. |
| 24 PASS new TrackEvent('TrackEvent', { track: 'string' }).track threw exception Typ
eError: Failed to construct 'TrackEvent': The 'track' property does not have the
expected type.. | 24 PASS new TrackEvent('TrackEvent', { track: 'string' }).track threw exception Typ
eError: Failed to construct 'TrackEvent': The 'track' property does not have a o
bject type.. |
| 25 PASS new TrackEvent('TrackEvent', { track: emptyObject }).track threw exception
TypeError: Failed to construct 'TrackEvent': The 'track' property does not have
the expected type.. | 25 PASS new TrackEvent('TrackEvent', { track: emptyObject }).track threw exception
TypeError: Failed to construct 'TrackEvent': The 'track' property does not have
a object type.. |
| 26 PASS new TrackEvent('TrackEvent', { track: document }).track threw exception Typ
eError: Failed to construct 'TrackEvent': The 'track' property does not have the
expected type.. | 26 PASS new TrackEvent('TrackEvent', { track: document }).track threw exception Typ
eError: Failed to construct 'TrackEvent': The 'track' property does not have a o
bject type.. |
| 27 | 27 |
| 28 *** Bubbles and cancelable true, valid track *** | 28 *** Bubbles and cancelable true, valid track *** |
| 29 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: trac
kElement.track }).bubbles is true | 29 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: trac
kElement.track }).bubbles is true |
| 30 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: trac
kElement.track }).cancelable is true | 30 PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: trac
kElement.track }).cancelable is true |
| 31 PASS new TrackEvent('TrackEvent', { track: trackElement.track }).track is trackE
lement.track | 31 PASS new TrackEvent('TrackEvent', { track: trackElement.track }).track is trackE
lement.track |
| 32 | 32 |
| 33 *** Initialize 'track' with valid track object *** | 33 *** Initialize 'track' with valid track object *** |
| 34 PASS new TrackEvent('TrackEvent', { track: trackElement.track }).track is trackE
lement.track | 34 PASS new TrackEvent('TrackEvent', { track: trackElement.track }).track is trackE
lement.track |
| 35 | 35 |
| 36 PASS successfullyParsed is true | 36 PASS successfullyParsed is true |
| 37 | 37 |
| 38 TEST COMPLETE | 38 TEST COMPLETE |
| 39 | 39 |
| OLD | NEW |