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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-captions-on-off-expected.txt

Issue 2121613002: Convert video-controls-[captions, overlay, track]* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nit Created 4 years, 5 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
OLDNEW
(Empty)
1 Tests that tracks can be turned on and off through the track selection menu
2
3 EVENT(canplaythrough)
4
5 ** Caption button should be visible and enabled.
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 not yet loaded. **
11 EXPECTED (video.textTracks.length == '1') OK
12 EXPECTED (video.textTracks[0].mode == 'hidden') OK
13 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
14 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
15 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
16
17 ** Captions track should become visible after the track is selected **
18 *** Click the CC button.
19 EXPECTED (displayElement.innerText == 'First') OK
20 EXPECTED (displayElement.innerText == 'Second') OK
21 EXPECTED (displayElement.innerText == 'Third') OK
22
23 ** Captions should not be visible after they're turned off through the menu **
24 *** Click the CC button.
25 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
26 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
27 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
28
29 ** Captions track should become visible after the track is selected again **
30 *** Click the CC button.
31 EXPECTED (displayElement.innerText == 'First') OK
32 EXPECTED (displayElement.innerText == 'Second') OK
33 EXPECTED (displayElement.innerText == 'Third') OK
34
35 END OF TEST
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698