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

Unified Diff: LayoutTests/media/media-controller-playbackrate.html

Issue 431903003: Always notify the MediaPlayer of any seek. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified on top of acolwell's patch 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-playbackrate.html
diff --git a/LayoutTests/media/media-controller-playbackrate.html b/LayoutTests/media/media-controller-playbackrate.html
index e5a142b44a91494a8e26532d624c85a48e3cda43..0d08ed7f8c89a08a29559543d50bca8a96e2c13c 100644
--- a/LayoutTests/media/media-controller-playbackrate.html
+++ b/LayoutTests/media/media-controller-playbackrate.html
@@ -6,7 +6,7 @@
<script>
var start = function() {
findMediaElement();
- waitForEvent('canplay',canplay);
+ waitForEventOnce('canplay',canplay);
video.src = findMediaFile('video', 'content/test');
};
@@ -32,7 +32,11 @@
var play = function() {
video.controller.playbackRate = 2;
- waitForEventOnce('timeupdate', timeupdate);
+ waitForEventOnce("playing", playing);
acolwell GONE FROM CHROMIUM 2014/07/31 18:55:53 nit: Just inline the function here. You don't real
Srirama 2014/07/31 19:37:26 Done.
+ };
+
+ var playing = function() {
+ waitForEventOnce("timeupdate", timeupdate);
};
var timeupdate = function() {

Powered by Google App Engine
This is Rietveld 408576698