Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Side by Side Diff: LayoutTests/media/video-controls-captions-load-by-lang-expected.txt

Issue 54713007: Hide the CC button for <audio> with <track>s (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add test Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698