Index: LayoutTests/media/media-controller-playbackrate.html |
diff --git a/LayoutTests/media/media-controller-playbackrate.html b/LayoutTests/media/media-controller-playbackrate.html |
index 7df5e4b92ee693d4e1384ce778d91101690dfd38..3ea2ed562e1599ee5b7c41429f21ee91e6d88d32 100644 |
--- a/LayoutTests/media/media-controller-playbackrate.html |
+++ b/LayoutTests/media/media-controller-playbackrate.html |
@@ -4,15 +4,13 @@ |
<script src=media-file.js></script> |
<script src=video-test.js></script> |
<script> |
- var start = function() |
- { |
+ var start = function() { |
findMediaElement(); |
- waitForEventOnce('canplay',canplay); |
+ waitForEvent('canplay',canplay); |
video.src = findMediaFile('video', 'content/test'); |
}; |
- var canplay = function() |
- { |
+ var canplay = function() { |
video.mediaGroup = "group"; |
// Test non-finite rates. |
@@ -34,23 +32,17 @@ |
waitForEventOnce('seeked', seeked); |
}; |
- var seeked = function() |
- { |
+ var seeked = function() { |
waitForEvent('play', play); |
video.play(); |
}; |
- var play = function() |
- { |
+ var play = function() { |
video.controller.playbackRate = 2; |
- waitForEventOnce("playing", function() |
- { |
- waitForEventOnce("timeupdate", timeupdate); |
- }); |
+ waitForEventOnce('timeupdate', timeupdate); |
}; |
- var timeupdate = function() |
- { |
+ var timeupdate = function() { |
testExpected('video.currentTime', 0, '!='); |
endTest(); |
}; |