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

Unified Diff: LayoutTests/media/video-positive-start-time-seek-before-start-time.html

Issue 544173012: Add LayoutTest for media with positive start times. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better video! Created 6 years, 3 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 | « LayoutTests/media/video-positive-start-time-seek-after-start-time.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-positive-start-time-seek-before-start-time.html
diff --git a/LayoutTests/media/video-positive-start-time-seek-before-start-time.html b/LayoutTests/media/video-positive-start-time-seek-before-start-time.html
new file mode 100644
index 0000000000000000000000000000000000000000..4eccc9082d9406a9a4b22435de01d1ca147ebc01
--- /dev/null
+++ b/LayoutTests/media/video-positive-start-time-seek-before-start-time.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>video with a postive start time and a seek before start time</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id="log"></div>
+<video controls></video>
+<script>
+async_test(function(t) {
+ var video = document.querySelector('video');
+
+ video.onloadeddata = t.step_func(function() {
+ assert_equals(video.currentTime, 3, 'currentTime');
+
+ // FIXME: Once Chrome correctly exposes seekable ranges for media with
+ // positive start times, verify video.seekable.start(0) here.
+ t.done();
+ });
+
+ video.src = 'resources/test-positive-start-time.webm#t=2';
+});
+</script>
« no previous file with comments | « LayoutTests/media/video-positive-start-time-seek-after-start-time.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698