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

Unified Diff: LayoutTests/media/media-controller-playbackrate.html

Issue 1267953003: Re-Relanding 'Always notify the WebMediaPlayer of any seek' patch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: copy seek-to-currentTime.html from web-platform-tests Created 5 years, 4 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/media-controller-playbackrate.html
diff --git a/LayoutTests/media/media-controller-playbackrate.html b/LayoutTests/media/media-controller-playbackrate.html
index 3ea2ed562e1599ee5b7c41429f21ee91e6d88d32..50cb338e8327533f1ee2ffaa5cc98076f85245da 100644
--- a/LayoutTests/media/media-controller-playbackrate.html
+++ b/LayoutTests/media/media-controller-playbackrate.html
@@ -6,7 +6,7 @@
<script>
var start = function() {
findMediaElement();
- waitForEvent('canplay',canplay);
+ waitForEventOnce('canplay',canplay);
video.src = findMediaFile('video', 'content/test');
};
@@ -39,7 +39,11 @@
var play = function() {
video.controller.playbackRate = 2;
- waitForEventOnce('timeupdate', timeupdate);
+ waitForEventOnce("playing", playing);
+ };
+
+ var playing = function() {
+ waitForEventOnce("timeupdate", timeupdate);
};
var timeupdate = function() {

Powered by Google App Engine
This is Rietveld 408576698