OLD | NEW |
| (Empty) |
1 Tests that events are triggered for missed (skipped) cues during normal playback
. | |
2 | |
3 EVENT(canplaythrough) | |
4 EXPECTED (testTrack.track.cues.length == '7') OK | |
5 RUN(video.play()) | |
6 | |
7 EVENT(enter) | |
8 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'I said Bear is comi
ng now!!!!') OK | |
9 EXPECTED (currentCue.id == '3') OK | |
10 | |
11 EVENT(exit) | |
12 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'I said Bear is comi
ng now!!!!') OK | |
13 EXPECTED (currentCue.id == '3') OK | |
14 | |
15 EVENT(enter) | |
16 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'This is the second
missed cue in the test.') OK | |
17 EXPECTED (currentCue.id == '4') OK | |
18 | |
19 EVENT(exit) | |
20 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'This is the second
missed cue in the test.') OK | |
21 EXPECTED (currentCue.id == '4') OK | |
22 | |
23 EVENT(enter) | |
24 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Third missed cue -
zero-length cue.') OK | |
25 EXPECTED (currentCue.id == '5') OK | |
26 | |
27 EVENT(exit) | |
28 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Third missed cue -
zero-length cue.') OK | |
29 EXPECTED (currentCue.id == '5') OK | |
30 | |
31 EVENT(enter) | |
32 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Fourth missed cue.'
) OK | |
33 EXPECTED (currentCue.id == '6') OK | |
34 | |
35 EVENT(exit) | |
36 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Fourth missed cue.'
) OK | |
37 EXPECTED (currentCue.id == '6') OK | |
38 | |
39 EVENT(enter) | |
40 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Negative length cue
. Should be treated correctly.') OK | |
41 EXPECTED (currentCue.id == '7') OK | |
42 | |
43 EVENT(exit) | |
44 EXPECTED (testTrack.track.cues.getCueById(cueCount).text == 'Negative length cue
. Should be treated correctly.') OK | |
45 EXPECTED (currentCue.id == '7') OK | |
46 EVENT(ended) | |
47 END OF TEST | |
48 | |
OLD | NEW |