OLD | NEW |
| (Empty) |
1 Test that we can display a track list menu and select tracks from the list | |
2 EVENT(canplaythrough) | |
3 | |
4 ** Caption button should be visible and enabled. | |
5 EXPECTED (captionsButtonCoordinates[0] > '0') OK | |
6 EXPECTED (captionsButtonCoordinates[1] > '0') OK | |
7 EXPECTED (captionsButtonElement.disabled == 'false') OK | |
8 | |
9 EXPECTED (video.textTracks.length == '2') OK | |
10 EXPECTED (video.textTracks[0].mode == 'hidden') OK | |
11 EXPECTED (video.textTracks[1].mode == 'hidden') OK | |
12 | |
13 Select track 0 and verify it is displayed | |
14 *** Click the CC button. | |
15 EXPECTED (video.textTracks[0].mode == 'showing') OK | |
16 EXPECTED (video.textTracks[1].mode == 'hidden') OK | |
17 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK | |
18 | |
19 Select track 1 and verify it is displayed | |
20 *** Click the CC button. | |
21 EXPECTED (video.textTracks[0].mode == 'disabled') OK | |
22 EXPECTED (video.textTracks[1].mode == 'showing') OK | |
23 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'first caption'
) OK | |
24 | |
25 END OF TEST | |
26 | |
OLD | NEW |