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