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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/video-controls-captions-expected.txt
diff --git a/LayoutTests/media/video-controls-captions-expected.txt b/LayoutTests/media/video-controls-captions-expected.txt
index 7efa17f2b3c94cd75a566d79c2de7b86333193f8..750344d52e28a9c197ae93b24b48ee01f738c55d 100644
--- a/LayoutTests/media/video-controls-captions-expected.txt
+++ b/LayoutTests/media/video-controls-captions-expected.txt
@@ -2,7 +2,7 @@ Tests that the closed captions button, when toggled, updates the text track disp
EVENT(canplaythrough)
-** Caption button should be visible and enabled because we have a captions track.
+** Caption button should be visible and enabled.
EXPECTED (captionsButtonCoordinates[0] > '0') OK
EXPECTED (captionsButtonCoordinates[1] > '0') OK
EXPECTED (captionsButtonElement.disabled == 'false') OK
@@ -22,7 +22,7 @@ No text track cue with display id '-webkit-media-text-track-display' is currentl
** Remove DOM node representing the track element **
-** Caption button should not be visible as there are no caption tracks.
+** Caption button should not be visible.
EXPECTED (captionsButtonCoordinates[0] <= '0') OK
EXPECTED (captionsButtonCoordinates[1] <= '0') OK
@@ -31,7 +31,7 @@ EXPECTED (track.readyState == '0') OK
EXPECTED (track.track.mode == 'disabled') OK
EXPECTED (video.textTracks.length == '1') OK
-** Caption button should be visible and enabled because we have a captions track.
+** Caption button should be visible and enabled.
EXPECTED (captionsButtonCoordinates[0] > '0') OK
EXPECTED (captionsButtonCoordinates[1] > '0') OK
EXPECTED (captionsButtonElement.disabled == 'false') OK
@@ -39,13 +39,13 @@ EXPECTED (captionsButtonElement.disabled == 'false') OK
*** Click the CC button.
** Track failed to load **
-** Caption button should not be visible as there are no caption tracks.
+** Caption button should not be visible.
EXPECTED (captionsButtonCoordinates[0] <= '0') OK
EXPECTED (captionsButtonCoordinates[1] <= '0') OK
** Add a text track through JS to the video element **
-** Caption button should be visible and enabled because we have a captions track.
+** Caption button should be visible and enabled.
EXPECTED (captionsButtonCoordinates[0] > '0') OK
EXPECTED (captionsButtonCoordinates[1] > '0') OK
EXPECTED (captionsButtonElement.disabled == 'false') OK
« 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