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

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: 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/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..6cecea7fb42fdead73fc19f9c7d54bb062a8e660
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
@@ -0,0 +1,28 @@
+<!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].kind, "main", "videoTrack.kind");
+ assert_equals(e.videoTracks[0].label, "", "videoTrack.label");
+ assert_equals(e.videoTracks[0].language, "eng", "videoTrack.language");
philipj_slow 2016/02/26 11:42:56 This seems even more strange. What does it mean fo
servolk 2016/02/27 00:56:21 See my other comment. Per https://dev.w3.org/html5
+ });
+ });
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698