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

Side by Side Diff: LayoutTests/media/track/track-in-band-legacy-api-expected.txt

Issue 26759003: Remove HTMLMediaElement.webkitHasClosedCaptions/webkitClosedCaptionsVisible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to resolve conflicts 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
« no previous file with comments | « LayoutTests/media/track/track-in-band-legacy-api.html ('k') | ManualTests/media-controls.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Test that in-band tracks work with .webkitClosedCaptionsVisible.
2
3 EVENT(canplaythrough)
4
5 ** Check initial in-band track states
6 EXPECTED (video.textTracks.length == '1') OK
7 RUN(inbandTrack1 = video.textTracks[0])
8 EXPECTED (inbandTrack1.mode == 'disabled') OK
9 EXPECTED (inbandTrack1.cues == 'null') OK
10 EXPECTED (inbandTrack1.language == 'en') OK
11 EXPECTED (inbandTrack1.kind == 'captions') OK
12
13 ** Enable cues and let them load
14 RUN(video.webkitClosedCaptionsVisible = true)
15 RUN(video.play())
16 EVENT(seeked)
17
18 ** Test to make sure captions are displaying
19 EXPECTED (inbandTrack1.cues != 'null') OK
20 EXPECTED (textTrackDisplayElement(video, 'cue').textContent != 'null') OK
21
22 ** Disable captions, cues should be flushed
23 RUN(video.webkitClosedCaptionsVisible = false)
24 EXPECTED (inbandTrack1.cues == 'null') OK
25
26 END OF TEST
27
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-in-band-legacy-api.html ('k') | ManualTests/media-controls.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698