/home/clopez/webkit/webkit/layout-test-results/media/track/track-manual-mode-actual.txt

1 Tests 'manual' caption mode.
 1FAIL: Timed out waiting for notifyDone to be called
22
3 
4 RUN(internals.setUserPreferredLanguages(['en']))
5 RUN(internals.setPrimaryAudioTrackLanguageOverride('fr'))
6 RUN(internals.setCaptionDisplayMode('manual'))
7 EVENT(canplaythrough)
8 
9 ** Forced tracks should be in .textTracks as well as in the menu
10 EXPECTED (video.textTracks.length == '9') OK
11 EXPECTED (trackMenuItems.length == '11') OK
12 
13 ** 'forced' should be in the title of a forced track menu item
14 Track menu:
15 0: "Off", checked
16 1: "Auto (Recommended)"
17 2: "English Closed Captions CC"
18 3: "English Subtitles"
19 4: "English Subtitles Forced"
20 5: "French Subtitles"
21 6: "French Subtitles Forced"
22 7: "German Subtitles"
23 8: "German Subtitles Forced"
24 9: "Spanish Subtitles"
25 10: "Spanish Subtitles Forced"
26 
27 ** No track should be enabled by default
28 EXPECTED (video.textTracks[0].language == 'en') OK
29 EXPECTED (video.textTracks[0].kind == 'subtitles') OK
30 EXPECTED (video.textTracks[0].mode == 'disabled') OK
31 
32 EXPECTED (video.textTracks[1].language == 'en') OK
33 EXPECTED (video.textTracks[1].kind == 'forced') OK
34 EXPECTED (video.textTracks[1].mode == 'disabled') OK
35 
36 EXPECTED (video.textTracks[2].language == 'fr') OK
37 EXPECTED (video.textTracks[2].kind == 'subtitles') OK
38 EXPECTED (video.textTracks[2].mode == 'disabled') OK
39 
40 EXPECTED (video.textTracks[3].language == 'fr') OK
41 EXPECTED (video.textTracks[3].kind == 'forced') OK
42 EXPECTED (video.textTracks[3].mode == 'disabled') OK
43 
44 EXPECTED (video.textTracks[4].language == 'es') OK
45 EXPECTED (video.textTracks[4].kind == 'subtitles') OK
46 EXPECTED (video.textTracks[4].mode == 'disabled') OK
47 
48 EXPECTED (video.textTracks[5].language == 'es') OK
49 EXPECTED (video.textTracks[5].kind == 'forced') OK
50 EXPECTED (video.textTracks[5].mode == 'disabled') OK
51 
52 EXPECTED (video.textTracks[6].language == 'de') OK
53 EXPECTED (video.textTracks[6].kind == 'subtitles') OK
54 EXPECTED (video.textTracks[6].mode == 'disabled') OK
55 
56 EXPECTED (video.textTracks[7].language == 'de') OK
57 EXPECTED (video.textTracks[7].kind == 'forced') OK
58 EXPECTED (video.textTracks[7].mode == 'disabled') OK
59 
60 EXPECTED (video.textTracks[8].language == 'en') OK
61 EXPECTED (video.textTracks[8].kind == 'captions') OK
62 EXPECTED (video.textTracks[8].mode == 'disabled') OK
63 
64 END OF TEST
65