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

Unified Diff: LayoutTests/media/media-controller-effective-playback-rate.html

Issue 431903003: Always notify the MediaPlayer of any seek. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review comments Created 6 years, 5 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 e0d28631db9727e37d01066e75ea2a994524a62c..c5f434d3bb44414abf1d70d1fca355fb03ed3864 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()
@@ -28,12 +28,9 @@
// Initiate playback and verify that time moves forward.
run("video.play()");
- waitForEventOnce("play", play);
- };
-
- var play = function()
- {
- waitForEventOnce("timeupdate", timeupdate);
+ waitForEventOnce("playing", function() {
acolwell GONE FROM CHROMIUM 2014/07/31 20:00:16 nit: { on next line.
Srirama 2014/07/31 20:20:18 Done.
+ waitForEventOnce("timeupdate", timeupdate);
+ });
};
var timeupdate = function() {

Powered by Google App Engine
This is Rietveld 408576698