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

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

Issue 1735803002: Implemented passing media track info from ffmpeg into blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cast_shell + test nits Created 4 years, 10 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..897adcf1b74f45eb78bcc68a3b331d8470b0e6b5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
@@ -0,0 +1,28 @@
+<!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.mp4";
+
+ 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].kind, "main", "audioTrack.kind");
+ assert_equals(e.audioTracks[0].label, "", "audioTrack.label");
+ assert_equals(e.audioTracks[0].language, "eng", "audioTrack.language");
philipj_slow 2016/02/26 11:42:56 Does test.mp4 actually have an audio track marked
servolk 2016/02/27 00:56:21 I'm not sure how the test.mp4 was generated, but y
+ });
+ });
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698