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

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

Issue 1854553003: Convert webvtt regions tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address more comments Created 4 years, 8 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698