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

Side by Side Diff: LayoutTests/media/video-positive-start-time-seek-after-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>video with a postive start time and a seek after start time</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <video controls></video>
7 <script>
8 async_test(function(t) {
9 var video = document.querySelector('video');
10
11 video.onloadeddata = t.step_func(function() {
12 assert_equals(video.currentTime, 5, 'currentTime');
13
14 // FIXME: Once Chrome correctly exposes seekable ranges for media with
15 // positive start times, verify video.seekable.start(0) here.
16 t.done();
17 });
18
19 video.src = 'resources/test-positive-start-time.webm#t=5';
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698