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

Unified Diff: LayoutTests/media/audio-garbage-collect.html

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/audio-garbage-collect.html
diff --git a/LayoutTests/media/audio-garbage-collect.html b/LayoutTests/media/audio-garbage-collect.html
index 8b55931ed00f9dc54565576d52fa6e47f12d18b5..d7184cf106bfd60c34bdbd299a4da117cf797ed8 100644
--- a/LayoutTests/media/audio-garbage-collect.html
+++ b/LayoutTests/media/audio-garbage-collect.html
@@ -50,10 +50,11 @@ function start() {
finish();
}
});
- a.addEventListener('canplaythrough', function() {
+
+ waitForEvent('canplaythrough', function() {
a.currentTime = a.duration - 0.35;
a.play();
- });
+ }, false, true, a, true);
}
start();

Powered by Google App Engine
This is Rietveld 408576698