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

Unified Diff: LayoutTests/media/track/track-cues-seeking.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: 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/track/track-cues-seeking.html
diff --git a/LayoutTests/media/track/track-cues-seeking.html b/LayoutTests/media/track/track-cues-seeking.html
index 78406b4ea0eec80ac0dbef46efebff545a9a90a2..9b5e25c6bd9911c833a7e37d555cf2185505440a 100644
--- a/LayoutTests/media/track/track-cues-seeking.html
+++ b/LayoutTests/media/track/track-cues-seeking.html
@@ -6,15 +6,15 @@
<script src=../media-file.js></script>
<script src=../video-test.js></script>
- <script>
-
+ <script>
+
var seekedCount = 0;
var testTrack;
-
+
var trackLoaded = false;
var videoCanPlayThrough = false;
- function attemptTests()
+ function attemptTests()
{
if (!trackLoaded || !videoCanPlayThrough)
return;
@@ -41,17 +41,17 @@
if (seekedCount == 4)
endTest();
}
-
+
waitForEvent('seeked', seeked);
- waitForEvent('canplaythrough',
- function ()
+ waitForEventOnce('canplaythrough',
+ function ()
{
videoCanPlayThrough = true;
attemptTests();
}
);
-
+
function loaded()
{
trackLoaded = true;
« no previous file with comments | « LayoutTests/media/track/track-cues-pause-on-exit.html ('k') | LayoutTests/media/track/track-cues-sorted-before-dispatch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698