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

Unified Diff: third_party/WebKit/LayoutTests/media/track/text-track-selection-menu-add-track-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/track/text-track-selection-menu-add-track-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt b/third_party/WebKit/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3c5ab423f471d4d1fc31a83c5b536bebc21b94b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt
@@ -0,0 +1,22 @@
+Test that we can add a track dynamically and it is displayed on the track selection menu
+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 == 'showing') OK
+EXPECTED (video.textTracks[1].mode == 'hidden') OK
+
+Verify the default track is being displayed
+EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem') OK
+
+Select the newly added track
+*** Click the CC button.
+EXPECTED (video.textTracks[1].mode == 'showing') OK
+EXPECTED (video.textTracks[0].mode == 'disabled') OK
+EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Bonjour') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698