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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/video-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: wolenetz@ CR feedback + better track info extraction in ffmpeg 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
« no previous file with comments | « third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html b/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
new file mode 100644
index 0000000000000000000000000000000000000000..86dc90169a068a13d221e28d74953357c882800a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+ <head>
+ <title>VideoTrack 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("video");
+ e.src = "../content/test.mp4";
+
+ e.onloadedmetadata = t.step_func_done(function()
+ {
+ assert_equals(e.videoTracks.length, 1, "videoTracks.length");
+ assert_true(e.videoTracks[0].selected, "videoTrack.selected");
+ assert_equals(e.videoTracks[0].id, "2", "videoTrack.id");
+ assert_equals(e.videoTracks[0].kind, "main", "videoTrack.kind");
+ assert_equals(e.videoTracks[0].label, "Apple Video Media Handler", "videoTrack.label");
+ assert_equals(e.videoTracks[0].language, "eng", "videoTrack.language");
+ });
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698