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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-track-selection-menu-expected.txt

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and lgtm nits Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/video-controls-track-selection-menu-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-track-selection-menu-expected.txt b/third_party/WebKit/LayoutTests/media/video-controls-track-selection-menu-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f6359ba0fa8b844f6b1dd1d5f7c7e7f63817e707
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/video-controls-track-selection-menu-expected.txt
@@ -0,0 +1,26 @@
+Test that we can display a track list menu and select tracks from the list
+EVENT(canplaythrough)
+
+** Caption button should be visible and enabled.
+EXPECTED (captionsButtonCoordinates[0] > '0') OK
+EXPECTED (captionsButtonCoordinates[1] > '0') OK
+EXPECTED (captionsButtonElement.disabled == 'false') OK
+
+EXPECTED (video.textTracks.length == '2') OK
+EXPECTED (video.textTracks[0].mode == 'hidden') OK
+EXPECTED (video.textTracks[1].mode == 'hidden') OK
+
+Select track 0 and verify it is displayed
+*** Click the CC button.
+EXPECTED (video.textTracks[0].mode == 'showing') OK
+EXPECTED (video.textTracks[1].mode == 'hidden') OK
+EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK
+
+Select track 1 and verify it is displayed
+*** Click the CC button.
+EXPECTED (video.textTracks[0].mode == 'disabled') OK
+EXPECTED (video.textTracks[1].mode == 'showing') OK
+EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'first caption') OK
+
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698