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

Unified Diff: LayoutTests/media/video-test.js

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-test.js
diff --git a/LayoutTests/media/video-test.js b/LayoutTests/media/video-test.js
index 986f000d2ac50b776497f0eeaeb39b48105f2817..df1287048719d07bb4c0804ba55434afef649d5b 100644
--- a/LayoutTests/media/video-test.js
+++ b/LayoutTests/media/video-test.js
@@ -46,6 +46,11 @@ function findMediaElement()
video = document.getElementsByTagName('video')[0];
if (video)
mediaElement = video;
+ else {
+ audio = document.getElementsByTagName('audio')[0];
+ if (audio)
+ mediaElement = audio;
+ }
} catch (ex) { }
}
« no previous file with comments | « LayoutTests/media/video-controls-captions-multiple-clicks-expected.txt ('k') | Source/core/css/mediaControls.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698