OLD | NEW |
1 Ensure that a TextTrackCue won't be collected if it has a custom property. | 1 Ensure that a TextTrackCue won't be collected if it has a custom property. |
2 | 2 |
3 ** Validate. | 3 ** Validate. |
4 EXPECTED (video.textTracks[0].cues.length == '4') OK | 4 EXPECTED (video.textTracks[0].cues.length == '4') OK |
5 EXPECTED (video.textTracks[0].cues[1].startTime == '31') OK | 5 EXPECTED (video.textTracks[0].cues[1].startTime == '31') OK |
6 | 6 |
7 ** Add a custom property to a cue. | 7 ** Add a custom property to a cue. |
8 RUN(video.textTracks[0].cues[1].myProperty = 'tuna salad?') | 8 RUN(video.textTracks[0].cues[1].myProperty = 'tuna salad?') |
9 EXPECTED (video.textTracks[0].cues[1].myProperty == 'tuna salad?') OK | 9 EXPECTED (video.textTracks[0].cues[1].myProperty == 'tuna salad?') OK |
10 | 10 |
11 ** Force garbage collection. | 11 ** Force garbage collection. |
12 EXPECTED (video.textTracks[0].cues.length == '4') OK | 12 EXPECTED (video.textTracks[0].cues.length == '4') OK |
13 EXPECTED (video.textTracks[0].cues[1].myProperty == 'tuna salad?'), OBSERVED 'un
defined' FAIL | 13 EXPECTED (video.textTracks[0].cues[1].myProperty == 'tuna salad?') OK |
14 | 14 |
15 END OF TEST | 15 END OF TEST |
16 | 16 |
OLD | NEW |