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

Unified Diff: LayoutTests/media/video-controls-captions-multiple-clicks-expected.txt

Issue 14056005: Added code to enable the first caption track if the user has requested captions and one such track … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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/video-controls-captions-multiple-clicks-expected.txt
diff --git a/LayoutTests/media/video-controls-captions-multiple-clicks-expected.txt b/LayoutTests/media/video-controls-captions-multiple-clicks-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e25f20c7bf300b272d5f4809c558a4176617b3f8
--- /dev/null
+++ b/LayoutTests/media/video-controls-captions-multiple-clicks-expected.txt
@@ -0,0 +1,36 @@
+Tests that multiple toggles of the closed captions button still display captions
+
+EVENT(canplaythrough)
+
+** Caption button should be visible and enabled because we have a captions track.
+EXPECTED (captionsButtonCoordinates[0] > '0') OK
+EXPECTED (captionsButtonCoordinates[1] > '0') OK
+EXPECTED (captionsButtonElement.disabled == 'false') OK
+
+** The captions track should be listed in textTracks, but not yet loaded. **
+EXPECTED (video.textTracks.length == '1') OK
+EXPECTED (video.textTracks[0].mode == 'hidden') OK
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+
+** Captions track should become visible after button is clicked **
+*** Click the CC button.
+EXPECTED (displayElement.innerText == 'First') OK
+EXPECTED (displayElement.innerText == 'Second') OK
+EXPECTED (displayElement.innerText == 'Third') OK
+
+** Captions should not be visible after button is clicked again **
+*** Click the CC button.
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+No text track cue with display id '-webkit-media-text-track-display' is currently visible
+
+** Captions should become visible after button is clicked again **
+*** Click the CC button.
+EXPECTED (displayElement.innerText == 'First') OK
+EXPECTED (displayElement.innerText == 'Second') OK
+EXPECTED (displayElement.innerText == 'Third') OK
+
+END OF TEST
+
« no previous file with comments | « LayoutTests/media/video-controls-captions-multiple-clicks.html ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698