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

Unified Diff: LayoutTests/media/video-currentTime-set.html

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix event-attributes expectations. 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/video-currentTime-set.html
diff --git a/LayoutTests/media/video-currentTime-set.html b/LayoutTests/media/video-currentTime-set.html
index c0ad82c13520cbc0657cd7872121aa086c095731..664c14cd0e099786166cd9a9255691345e0d1af6 100644
--- a/LayoutTests/media/video-currentTime-set.html
+++ b/LayoutTests/media/video-currentTime-set.html
@@ -2,24 +2,24 @@
<body>
<video controls></video>
-
+
<p>Test that setting currentTime changes the time, and that 'ended' event is fired in a reasonable amount of time</p>
-
+
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
- waitForEvent('canplaythrough',
- function () {
+ waitForEventOnce('canplaythrough',
+ function () {
waitForEventAndEnd('ended');
-
+
testExpected("video.currentTime", 0);
- run("video.currentTime = video.duration - 0.2");
+ run("video.currentTime = video.duration - 0.2");
});
waitForEvent('seeked',
function () {
testExpected("video.currentTime.toFixed(2)", (video.duration - 0.2).toFixed(2));
- run("video.play()");
+ run("video.play()");
consoleWrite("");
});
« no previous file with comments | « LayoutTests/media/video-currentTime-delay.html ('k') | LayoutTests/media/video-duration-known-after-eos.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698