Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: LayoutTests/media/track/regions-webvtt/text-track-region-display-expected.txt

Issue 25798003: Enable WebVTT regions for runtime testing, updated tests and minor fixes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698