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