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

Unified Diff: LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt

Issue 1082533002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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: LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt
diff --git a/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt b/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c8cf7ab3f9d5aae78f62c685b66b6bab28ff83bc
--- /dev/null
+++ b/LayoutTests/media/track/text-track-selection-menu-add-track-expected.txt
@@ -0,0 +1,21 @@
+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 (track.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 (track.mode == 'showing') OK
+EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Bonjour') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698