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

Unified Diff: LayoutTests/media/video-played.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
« no previous file with comments | « LayoutTests/media/video-playbackrate.html ('k') | LayoutTests/media/video-played-reset.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-played.js
diff --git a/LayoutTests/media/video-played.js b/LayoutTests/media/video-played.js
index a6a2e8e3b73f5cff935ca376b1e03fb6ad4f9334..a1cfee9ff19340e61b0dc287856afb1de79cb6a3 100644
--- a/LayoutTests/media/video-played.js
+++ b/LayoutTests/media/video-played.js
@@ -116,7 +116,7 @@ function playForMillisecs(milliseconds)
var callPauseIfTimeIsReached = function ()
{
var playedTime = video.currentTime - playedFromTime;
-
+
if (playedTime < 0) {
// Deal with 'loop' attribue. This work only once, hence the warning
// At the begining of playForMillisecs()
@@ -153,7 +153,7 @@ function videoPlayedMain()
waitForEvent("loadstart");
waitForEvent("ratechange");
waitForEvent("loadedmetadata");
- waitForEvent("canplay", canplay); // Will trigger nextTest() which launches the tests.
+ waitForEventOnce("canplay", canplay); // Will trigger nextTest() which launches the tests.
waitForEvent("pause", pause);
video.load();
« no previous file with comments | « LayoutTests/media/video-playbackrate.html ('k') | LayoutTests/media/video-played-reset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698