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

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: 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..5c79dc73d5f9561cfdb94cf24c95d24ecfe02685
--- /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>
fs 2016/02/25 11:40:40 Same things here as for the audio-* test.
servolk 2016/02/25 18:14:23 Acknowledged.
+ <script>
+ async_test(function(t)
+ {
+ var e = document.createElement("video");
+ e.src = "../content/test.mp4";
+
+ e.onloadedmetadata = t.step_func(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");
+ t.done();
+ });
+ }, "VideoTrack properties read from input stream metadata");
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698