OLD | NEW |
| (Empty) |
1 Tests that appropriate language track is loaded, according to user preferences. | |
2 | |
3 EVENT(canplaythrough) | |
4 | |
5 ** Caption button should be visible and enabled. | |
6 EXPECTED (captionsButtonCoordinates[0] > '0') OK | |
7 EXPECTED (captionsButtonCoordinates[1] > '0') OK | |
8 EXPECTED (captionsButtonElement.disabled == 'false') OK | |
9 | |
10 ** The captions track should be listed in textTracks, but disabled. ** | |
11 EXPECTED (video.textTracks.length == '2') OK | |
12 EXPECTED (video.textTracks[0].mode == 'disabled') OK | |
13 EXPECTED (video.textTracks[1].mode == 'disabled') OK | |
14 | |
15 ** Set the user language preference so that the track will be chosen when the CC
button is clicked. ** | |
16 RUN(internals.setUserPreferredLanguages(['ar'])) | |
17 *** Click the CC button. | |
18 END OF TEST | |
19 | |
OLD | NEW |