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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html

Issue 1735763002: Pass ffmpeg media track info to HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@demuxer-tracks
Patch Set: rebase Created 4 years, 9 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: third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6b2a62baa9cc3afcce73bdee77071f5854154ba
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+ <head>
+ <title>AudioTrack properties read from input stream metadata</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../media-file.js"></script>
+ </head>
+ <body>
+ <div id="log"></div>
+ <script>
+ async_test(function(t)
+ {
+ var e = document.createElement("audio");
+ e.src = "../content/test.webm";
+
+ e.onloadedmetadata = t.step_func_done(function()
+ {
+ assert_equals(e.audioTracks.length, 1, "audioTracks.length");
+ assert_true(e.audioTracks[0].enabled, "audioTrack.enabled");
+ assert_equals(e.audioTracks[0].id, "2", "audioTrack.id");
+ assert_equals(e.audioTracks[0].kind, "main", "audioTrack.kind");
+ assert_equals(e.audioTracks[0].label, "", "audioTrack.label");
+ assert_equals(e.audioTracks[0].language, "", "audioTrack.language");
+ });
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698