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

Unified 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, 7 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/TestExpectations ('k') | LayoutTests/media/video-reverse-play-duration-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-reverse-play-duration.html
diff --git a/LayoutTests/media/video-reverse-play-duration.html b/LayoutTests/media/video-reverse-play-duration.html
deleted file mode 100644
index a43c53da55cc6dbe99f634730c68682e880ad57c..0000000000000000000000000000000000000000
--- a/LayoutTests/media/video-reverse-play-duration.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE HTML>
-
-<html>
- <head>
- <title>local video</title>
-
- <script src=media-file.js></script>
- <script src=video-test.js></script>
-
- <script>
-
- var startedPlayback = 0;
- var duration = 0;
-
- function canplaythrough()
- {
- // Cache the duration, seek to 0.2 seconds
- duration = video.duration;
- testExpected("video.duration", 0, '>');
- testExpected("video.currentTime", 0);
- run("video.currentTime = 0.3");
- consoleWrite("");
- }
-
- function seeked()
- {
- // Play backwards
- testExpected("video.currentTime.toFixed(1)", 0.3);
- run("video.play()");
- run("video.playbackRate = -1");
- startedPlayback = true;
- consoleWrite("");
- }
-
- function timeupdate()
- {
- if (startedPlayback && video.currentTime == 0) {
- // Make sure the duration is still valid
- testExpected("video.duration", 0, '>');
- endTest();
- }
- }
-
- function start()
- {
- findMediaElement();
-
- waitForEvent("error");
- waitForEvent('canplaythrough', canplaythrough);
- waitForEvent('seeked', seeked);
- video.addEventListener("timeupdate", timeupdate);
-
- video.src = findMediaFile("video", "content/test");
- consoleWrite("");
- }
-
- </script>
- </head>
- <body>
- <video controls autobuffer></video>
- <p>Tests that duration is not set to zero when playing in reverse to the origin.</p>
- <script>start()</script>
- </body>
-</html>
-
-
« 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