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

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

Issue 574883002: Fix media layout tests that made invalid assumptions about timeupdate. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase + fix Created 6 years, 3 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..5dbdc9419568ee12fec781537f90953ca745eb18 100644
--- a/LayoutTests/media/media-controller-effective-playback-rate.html
+++ b/LayoutTests/media/media-controller-effective-playback-rate.html
@@ -26,6 +26,13 @@
testExpected("video.controller.playbackRate", 1);
testExpected("video.playbackRate", 0);
+ // Wait for the seek initiated by the "bringing up to speed"
+ // step to complete.
+ waitForEventOnce('seeked', seeked);
+ };
+
+ var seeked = function()
+ {
// Initiate playback and verify that time moves forward.
run("video.play()");
waitForEventOnce("play", play);

Powered by Google App Engine
This is Rietveld 408576698