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

Unified Diff: LayoutTests/media/audio-controls-captions.html

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
« no previous file with comments | « no previous file | LayoutTests/media/audio-controls-captions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/audio-controls-captions.html
diff --git a/LayoutTests/media/audio-controls-captions.html b/LayoutTests/media/audio-controls-captions.html
new file mode 100644
index 0000000000000000000000000000000000000000..51d51930d4dbd87ecda7be178439a0114223c205
--- /dev/null
+++ b/LayoutTests/media/audio-controls-captions.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Test closed caption button visbility.</title>
+ <script src=media-file.js></script>
+ <script src=media-controls.js></script>
+ <script src=video-test.js></script>
+</head>
+<body>
+ <p>Tests that the closed captions button is not visible.</p>
+ <audio controls>
+ <track src="track/captions-webvtt/captions-fast.vtt">
+ </audio>
+ <script>
+ findMediaElement();
+ audio.src = findMediaFile('audio', 'content/test');
+ audio.addEventListener('loadedmetadata', function()
+ {
+ testClosedCaptionsButtonVisibility(false);
+ endTest();
+ });
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/audio-controls-captions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698