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

Unified Diff: LayoutTests/media/media-fragments/media-fragments.js

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: Fix event-attributes expectations. 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/media-fragments/media-fragments.js
diff --git a/LayoutTests/media/media-fragments/media-fragments.js b/LayoutTests/media/media-fragments/media-fragments.js
index 35df2518791fa5e9075eefb3eafa271081fe2db5..efbfa521f2ffb863b23db4484e443aac8bd76831 100644
--- a/LayoutTests/media/media-fragments/media-fragments.js
+++ b/LayoutTests/media/media-fragments/media-fragments.js
@@ -119,7 +119,7 @@
paragraph.appendChild(video);
document.body.appendChild(paragraph);
- waitForEvent("canplaythrough", canplaythrough);
+ waitForEventOnce("canplaythrough", canplaythrough);
waitForEvent("pause", pause);
var fileName = location.href.split('/').pop();
« no previous file with comments | « LayoutTests/media/media-element-play-after-eos.html ('k') | LayoutTests/media/track/track-css-cue-lifetime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698