/home/clopez/webkit/webkit/layout-test-results/media/track/track-forced-subtitles-in-band-actual.txt

1 Tests that forced subtitles are enable automatically.
 1FAIL: Timed out waiting for notifyDone to be called
22
3 
4 RUN(internals.settings.setShouldDisplayTrackKind('Captions', false))
5 RUN(internals.settings.setShouldDisplayTrackKind('Subtitles', true))
6 RUN(internals.setUserPreferredLanguages(['en']))
7 RUN(internals.setPrimaryAudioTrackLanguageOverride('fr'))
8 RUN(internals.setCaptionDisplayMode('ForcedOnly'))
9 EVENT(canplaythrough)
10 
11 ** Forced tracks should be in .textTracks, but not in the menu
12 EXPECTED (video.textTracks.length == '9') OK
13 EXPECTED (trackMenuItems.length == '6') OK
14 
15 ** Only the 'fr' forced track should be showing
16 EXPECTED (video.textTracks[0].language == 'en') OK
17 EXPECTED (video.textTracks[0].kind == 'subtitles') OK
18 EXPECTED (video.textTracks[0].mode == 'disabled') OK
19 
20 EXPECTED (video.textTracks[1].language == 'en') OK
21 EXPECTED (video.textTracks[1].kind == 'forced') OK
22 EXPECTED (video.textTracks[1].mode == 'disabled') OK
23 
24 EXPECTED (video.textTracks[2].language == 'fr') OK
25 EXPECTED (video.textTracks[2].kind == 'subtitles') OK
26 EXPECTED (video.textTracks[2].mode == 'disabled') OK
27 
28 EXPECTED (video.textTracks[3].language == 'fr') OK
29 EXPECTED (video.textTracks[3].kind == 'forced') OK
30 EXPECTED (video.textTracks[3].mode == 'showing') OK
31 
32 EXPECTED (video.textTracks[4].language == 'es') OK
33 EXPECTED (video.textTracks[4].kind == 'subtitles') OK
34 EXPECTED (video.textTracks[4].mode == 'disabled') OK
35 
36 EXPECTED (video.textTracks[5].language == 'es') OK
37 EXPECTED (video.textTracks[5].kind == 'forced') OK
38 EXPECTED (video.textTracks[5].mode == 'disabled') OK
39 
40 EXPECTED (video.textTracks[6].language == 'de') OK
41 EXPECTED (video.textTracks[6].kind == 'subtitles') OK
42 EXPECTED (video.textTracks[6].mode == 'disabled') OK
43 
44 EXPECTED (video.textTracks[7].language == 'de') OK
45 EXPECTED (video.textTracks[7].kind == 'forced') OK
46 EXPECTED (video.textTracks[7].mode == 'disabled') OK
47 
48 EXPECTED (video.textTracks[8].language == 'en') OK
49 EXPECTED (video.textTracks[8].kind == 'captions') OK
50 EXPECTED (video.textTracks[8].mode == 'disabled') OK
51 
52 RUN(video.currentTime = 9.5)
53 
54 EVENT(seeked)
55 EVENT(cuechange)
56 EXPECTED (video.textTracks[3].activeCues.length == '1') OK
57 EXPECTED (textTrackDisplayElement(video, 'cue') != 'null') OK
58 
59 END OF TEST
60