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

Side by Side Diff: LayoutTests/media/video-controls-captions-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 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 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 not yet loaded. ** 10 ** The captions track should be listed in textTracks, but not yet loaded. **
11 EXPECTED (video.textTracks.length == '1') OK 11 EXPECTED (video.textTracks.length == '1') OK
12 EXPECTED (video.textTracks[0].mode == 'disabled') OK 12 EXPECTED (video.textTracks[0].mode == 'disabled') OK
13 Failed to find text track container element 13 Failed to find text track container element
14 14
15 ** Captions track should load and captions should become visible after button is clicked ** 15 ** Captions track should load and captions should become visible after button is clicked **
16 *** Click the CC button. 16 *** Click the CC button.
17 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK 17 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK
18 18
19 ** Captions should not be visible after button is clicked again ** 19 ** Captions should not be visible after button is clicked again **
20 *** Click the CC button. 20 *** Click the CC button.
21 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible 21 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
22 22
23 ** Remove DOM node representing the track element ** 23 ** Remove DOM node representing the track element **
24 24
25 ** Caption button should not be visible as there are no caption tracks. 25 ** Caption button should not be visible.
26 EXPECTED (captionsButtonCoordinates[0] <= '0') OK 26 EXPECTED (captionsButtonCoordinates[0] <= '0') OK
27 EXPECTED (captionsButtonCoordinates[1] <= '0') OK 27 EXPECTED (captionsButtonCoordinates[1] <= '0') OK
28 28
29 ** Add non-default text track through HTML with unloadable URI ** 29 ** Add non-default text track through HTML with unloadable URI **
30 EXPECTED (track.readyState == '0') OK 30 EXPECTED (track.readyState == '0') OK
31 EXPECTED (track.track.mode == 'disabled') OK 31 EXPECTED (track.track.mode == 'disabled') OK
32 EXPECTED (video.textTracks.length == '1') OK 32 EXPECTED (video.textTracks.length == '1') OK
33 33
34 ** Caption button should be visible and enabled because we have a captions track . 34 ** Caption button should be visible and enabled.
35 EXPECTED (captionsButtonCoordinates[0] > '0') OK 35 EXPECTED (captionsButtonCoordinates[0] > '0') OK
36 EXPECTED (captionsButtonCoordinates[1] > '0') OK 36 EXPECTED (captionsButtonCoordinates[1] > '0') OK
37 EXPECTED (captionsButtonElement.disabled == 'false') OK 37 EXPECTED (captionsButtonElement.disabled == 'false') OK
38 38
39 *** Click the CC button. 39 *** Click the CC button.
40 ** Track failed to load ** 40 ** Track failed to load **
41 41
42 ** Caption button should not be visible as there are no caption tracks. 42 ** Caption button should not be visible.
43 EXPECTED (captionsButtonCoordinates[0] <= '0') OK 43 EXPECTED (captionsButtonCoordinates[0] <= '0') OK
44 EXPECTED (captionsButtonCoordinates[1] <= '0') OK 44 EXPECTED (captionsButtonCoordinates[1] <= '0') OK
45 45
46 ** Add a text track through JS to the video element ** 46 ** Add a text track through JS to the video element **
47 47
48 ** Caption button should be visible and enabled because we have a captions track . 48 ** Caption button should be visible and enabled.
49 EXPECTED (captionsButtonCoordinates[0] > '0') OK 49 EXPECTED (captionsButtonCoordinates[0] > '0') OK
50 EXPECTED (captionsButtonCoordinates[1] > '0') OK 50 EXPECTED (captionsButtonCoordinates[1] > '0') OK
51 EXPECTED (captionsButtonElement.disabled == 'false') OK 51 EXPECTED (captionsButtonElement.disabled == 'false') OK
52 END OF TEST 52 END OF TEST
53 53
OLDNEW
« no previous file with comments | « LayoutTests/media/media-controls.js ('k') | LayoutTests/media/video-controls-captions-load-by-lang-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698