Chromium Code Reviews

Side by Side Diff: LayoutTests/media/video-controls-captions-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.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 Tests that the closed captions button, when toggled, updates the text track disp lay area. 1 Tests that the closed captions button, when toggled, updates the text track disp lay area.
2 2
3 Set the user language preference so that the track will be chosen when the CC bu tton is clicked.
4 RUN(internals.setUserPreferredLanguages(['en']))
5 EVENT(canplaythrough) 3 EVENT(canplaythrough)
6 4
7 ** Caption button should be visible and enabled because we have a captions track . 5 ** Caption button should be visible and enabled because we have a captions track .
8 EXPECTED (captionsButtonCoordinates[0] > '0') OK 6 EXPECTED (captionsButtonCoordinates[0] > '0') OK
9 EXPECTED (captionsButtonCoordinates[1] > '0') OK 7 EXPECTED (captionsButtonCoordinates[1] > '0') OK
10 EXPECTED (captionsButtonElement.disabled == 'false') OK 8 EXPECTED (captionsButtonElement.disabled == 'false') OK
11 9
12 ** The captions track should be listed in textTracks, but not yet loaded. ** 10 ** The captions track should be listed in textTracks, but not yet loaded. **
13 EXPECTED (video.textTracks.length == '1') OK 11 EXPECTED (video.textTracks.length == '1') OK
14 EXPECTED (video.textTracks[0].mode == 'disabled') OK 12 EXPECTED (video.textTracks[0].mode == 'disabled') OK
(...skipping 31 matching lines...)
46 EXPECTED (captionsButtonCoordinates[1] <= '0') OK 44 EXPECTED (captionsButtonCoordinates[1] <= '0') OK
47 45
48 ** Add a text track through JS to the video element ** 46 ** Add a text track through JS to the video element **
49 47
50 ** Caption button should be visible and enabled because we have a captions track . 48 ** Caption button should be visible and enabled because we have a captions track .
51 EXPECTED (captionsButtonCoordinates[0] > '0') OK 49 EXPECTED (captionsButtonCoordinates[0] > '0') OK
52 EXPECTED (captionsButtonCoordinates[1] > '0') OK 50 EXPECTED (captionsButtonCoordinates[1] > '0') OK
53 EXPECTED (captionsButtonElement.disabled == 'false') OK 51 EXPECTED (captionsButtonElement.disabled == 'false') OK
54 END OF TEST 52 END OF TEST
55 53
OLDNEW

Powered by Google App Engine