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

Unified Diff: LayoutTests/media/media-controller-effective-playback-rate.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-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..8fe8ee7824c08099c19682494fc9902288128822 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);
};
- var timeupdate = function() {
+ var timeupdate = function()
+ {
testExpected("video.currentTime", 0, "!=");
endTest();
};

Powered by Google App Engine
This is Rietveld 408576698