Tests 'manual' caption mode. RUN(internals.setUserPreferredLanguages(['en'])) RUN(internals.setPrimaryAudioTrackLanguageOverride('fr')) RUN(internals.setCaptionDisplayMode('manual')) EVENT(canplaythrough) ** Forced tracks should be in .textTracks as well as in the menu EXPECTED (video.textTracks.length == '9'), OBSERVED '6' FAIL EXPECTED (trackMenuItems.length == '11'), OBSERVED '8' FAIL ** 'forced' should be in the title of a forced track menu item Track menu: 0: "Off" 1: "Auto" 2: "No label" 3: "No label" 4: "No label" 5: "de" 6: "en" 7: "es" ** No track should be enabled by default EXPECTED (video.textTracks[0].language == 'en') OK EXPECTED (video.textTracks[0].kind == 'subtitles') OK EXPECTED (video.textTracks[0].mode == 'disabled') OK EXPECTED (video.textTracks[1].language == 'en'), OBSERVED '' FAIL EXPECTED (video.textTracks[1].kind == 'forced'), OBSERVED 'subtitles' FAIL EXPECTED (video.textTracks[1].mode == 'disabled') OK EXPECTED (video.textTracks[2].language == 'fr'), OBSERVED '' FAIL EXPECTED (video.textTracks[2].kind == 'subtitles') OK EXPECTED (video.textTracks[2].mode == 'disabled') OK EXPECTED (video.textTracks[3].language == 'fr'), OBSERVED '' FAIL EXPECTED (video.textTracks[3].kind == 'forced'), OBSERVED 'subtitles' FAIL EXPECTED (video.textTracks[3].mode == 'disabled') OK EXPECTED (video.textTracks[4].language == 'es') OK EXPECTED (video.textTracks[4].kind == 'subtitles') OK EXPECTED (video.textTracks[4].mode == 'disabled') OK EXPECTED (video.textTracks[5].language == 'es'), OBSERVED 'de' FAIL EXPECTED (video.textTracks[5].kind == 'forced'), OBSERVED 'subtitles' FAIL EXPECTED (video.textTracks[5].mode == 'disabled') OK TypeError: undefined is not an object (evaluating 'video.textTracks[6].language') TypeError: undefined is not an object (evaluating 'video.textTracks[6].kind') TypeError: undefined is not an object (evaluating 'video.textTracks[6].mode') TypeError: undefined is not an object (evaluating 'video.textTracks[7].language') TypeError: undefined is not an object (evaluating 'video.textTracks[7].kind') TypeError: undefined is not an object (evaluating 'video.textTracks[7].mode') TypeError: undefined is not an object (evaluating 'video.textTracks[8].language') TypeError: undefined is not an object (evaluating 'video.textTracks[8].kind') TypeError: undefined is not an object (evaluating 'video.textTracks[8].mode') END OF TEST