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

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

Issue 14056005: Added code to enable the first caption track if the user has requested captions and one such track … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
(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 because we have a captions track .
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698