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() { |