Index: LayoutTests/media/media-controller-effective-playback-rate.html |
diff --git a/LayoutTests/media/media-controller-effective-playback-rate.html b/LayoutTests/media/media-controller-effective-playback-rate.html |
index c5069b600fe8bfadb9e4d710d18214af2fe67aca..e0d28631db9727e37d01066e75ea2a994524a62c 100644 |
--- a/LayoutTests/media/media-controller-effective-playback-rate.html |
+++ b/LayoutTests/media/media-controller-effective-playback-rate.html |
@@ -13,7 +13,7 @@ |
// Set the rate on the media element so playback won't move forward. |
video.playbackRate = 0; |
- waitForEventOnce("canplay",canplay); |
+ waitForEvent("canplay",canplay); |
}; |
var canplay = function() |
@@ -28,14 +28,15 @@ |
// Initiate playback and verify that time moves forward. |
run("video.play()"); |
- waitForEventOnce("playing", function() |
- { |
- waitForEventOnce("timeupdate", timeupdate); |
- }); |
+ waitForEventOnce("play", play); |
}; |
- var timeupdate = function() |
+ var play = function() |
{ |
+ waitForEventOnce("timeupdate", timeupdate); |
+ }; |
+ |
+ var timeupdate = function() { |
testExpected("video.currentTime", 0, "!="); |
endTest(); |
}; |