OLD | NEW |
(Empty) | |
| 1 Tests default rendering for TextTrackCues that belong to a TextTrackRegion. |
| 2 |
| 3 EVENT(canplaythrough) |
| 4 ** The text track has only one region ** |
| 5 EXPECTED (testTrack.regions.length == '1') OK |
| 6 |
| 7 ** Inspecting cues displayed within region** |
| 8 |
| 9 RUN(video.currentTime = 0.2) |
| 10 EVENT(seeked) |
| 11 Total cues in region: 1 |
| 12 Cue content is: We are in New York City |
| 13 Cue lines visible from this cue: 1 |
| 14 EXPECTED (totalVisibleLines <= testTrack.regions[0].height == 'true') OK |
| 15 |
| 16 RUN(video.currentTime = 0.5) |
| 17 EVENT(seeked) |
| 18 Total cues in region: 2 |
| 19 Cue content is: We are in New York City |
| 20 Cue lines visible from this cue: 1 |
| 21 Cue content is: Second cue |
| 22 Cue lines visible from this cue: 1 |
| 23 EXPECTED (totalVisibleLines <= testTrack.regions[0].height == 'true') OK |
| 24 |
| 25 RUN(video.currentTime = 1) |
| 26 EVENT(seeked) |
| 27 Total cues in region: 3 |
| 28 Cue content is: We are in New York City |
| 29 Cue lines visible from this cue: 0 |
| 30 Cue content is: Second cue |
| 31 Cue lines visible from this cue: 0 |
| 32 Cue content is: Multiline Cue |
| 33 Cue lines visible from this cue: 2 |
| 34 EXPECTED (totalVisibleLines <= testTrack.regions[0].height == 'true') OK |
| 35 |
| 36 RUN(video.currentTime = 2.3) |
| 37 EVENT(seeked) |
| 38 Total cues in region: 2 |
| 39 Cue content is: Multiline Cue |
| 40 Cue lines visible from this cue: 1 |
| 41 Cue content is: Fourth cue! |
| 42 Cue lines visible from this cue: 1 |
| 43 EXPECTED (totalVisibleLines <= testTrack.regions[0].height == 'true') OK |
| 44 |
| 45 RUN(video.currentTime = 3) |
| 46 EVENT(seeked) |
| 47 Total cues in region: 1 |
| 48 Cue content is: Fourth cue! |
| 49 Cue lines visible from this cue: 1 |
| 50 EXPECTED (totalVisibleLines <= testTrack.regions[0].height == 'true') OK |
| 51 END OF TEST |
| 52 |
OLD | NEW |