Chromium Code Reviews| 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 5dbdc9419568ee12fec781537f90953ca745eb18..b478bdc0e13c2669ef30c995bcb32599a792198d 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; |
| - waitForEvent("canplay",canplay); |
| + waitForEventOnce("canplay",canplay); |
| }; |
| var canplay = function() |
| @@ -35,15 +35,16 @@ |
| { |
| // Initiate playback and verify that time moves forward. |
| run("video.play()"); |
| - waitForEventOnce("play", play); |
| + waitForEventOnce("playing", playing); |
| }; |
| - var play = function() |
| + var playing = function() |
| { |
| waitForEventOnce("timeupdate", timeupdate); |
| - }; |
| + } |
|
philipj_slow
2015/08/04 13:04:45
Semicolon here.
Srirama
2015/08/04 15:02:57
Done.
|
| - var timeupdate = function() { |
| + var timeupdate = function() |
| + { |
| testExpected("video.currentTime", 0, "!="); |
| endTest(); |
| }; |