OLD | NEW |
(Empty) | |
| 1 Test that we can add a track dynamically and it is displayed on the track select
ion menu |
| 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 == 'showing') OK |
| 11 EXPECTED (video.textTracks[1].mode == 'hidden') OK |
| 12 |
| 13 Verify the default track is being displayed |
| 14 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK |
| 15 |
| 16 Select the newly added track |
| 17 *** Click the CC button. |
| 18 EXPECTED (video.textTracks[1].mode == 'showing') OK |
| 19 EXPECTED (video.textTracks[0].mode == 'disabled') OK |
| 20 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Bonjour') OK |
| 21 END OF TEST |
| 22 |
OLD | NEW |