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

Side by Side Diff: LayoutTests/media/video-reverse-play-duration.html

Issue 16266005: Remove tests for playing video in reverse, which is not supported in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2
3 <html>
4 <head>
5 <title>local video</title>
6
7 <script src=media-file.js></script>
8 <script src=video-test.js></script>
9
10 <script>
11
12 var startedPlayback = 0;
13 var duration = 0;
14
15 function canplaythrough()
16 {
17 // Cache the duration, seek to 0.2 seconds
18 duration = video.duration;
19 testExpected("video.duration", 0, '>');
20 testExpected("video.currentTime", 0);
21 run("video.currentTime = 0.3");
22 consoleWrite("");
23 }
24
25 function seeked()
26 {
27 // Play backwards
28 testExpected("video.currentTime.toFixed(1)", 0.3);
29 run("video.play()");
30 run("video.playbackRate = -1");
31 startedPlayback = true;
32 consoleWrite("");
33 }
34
35 function timeupdate()
36 {
37 if (startedPlayback && video.currentTime == 0) {
38 // Make sure the duration is still valid
39 testExpected("video.duration", 0, '>');
40 endTest();
41 }
42 }
43
44 function start()
45 {
46 findMediaElement();
47
48 waitForEvent("error");
49 waitForEvent('canplaythrough', canplaythrough);
50 waitForEvent('seeked', seeked);
51 video.addEventListener("timeupdate", timeupdate);
52
53 video.src = findMediaFile("video", "content/test");
54 consoleWrite("");
55 }
56
57 </script>
58 </head>
59 <body>
60 <video controls autobuffer></video>
61 <p>Tests that duration is not set to zero when playing in reverse to the origin.</p>
62 <script>start()</script>
63 </body>
64 </html>
65
66
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/video-reverse-play-duration-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698