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

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: 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..65232e5fd8628cd242d8450ea7aff8376a3afd9d
--- /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>
fs 2016/02/25 11:40:39 You shouldn't need this. Ditto for <html>, <head>
servolk 2016/02/25 18:14:23 Are you sure? For some reason all other HTML files
fs 2016/02/25 18:36:40 I don't care greatly, but personally I think it's
philipj_slow 2016/02/26 11:42:56 FWIW, I always go with minimal markup and minimal
+ <script>
+ async_test(function(t)
+ {
+ var e = document.createElement("audio");
+ e.src = "../content/test.mp4";
+
+ e.onloadedmetadata = t.step_func(function()
fs 2016/02/25 11:40:39 I think you could use step_func_done here and ditc
servolk 2016/02/25 18:14:23 Done.
+ {
+ 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");
+ t.done();
+ });
+ }, "AudioTrack properties read from input stream metadata");
fs 2016/02/25 11:40:39 This will be picked up from the <title>.
servolk 2016/02/25 18:14:23 Done.
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698