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

Unified Diff: LayoutTests/media/event-attributes.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
« no previous file with comments | « LayoutTests/media/controls-drag-timebar.html ('k') | LayoutTests/media/media-controls-invalid-url.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/event-attributes.html
diff --git a/LayoutTests/media/event-attributes.html b/LayoutTests/media/event-attributes.html
index dfd4f97493d1fd2c8f0f91e2497c20d6493665fb..a7e15f35f2bd646d1c2bc511f8662dc672b4faed 100644
--- a/LayoutTests/media/event-attributes.html
+++ b/LayoutTests/media/event-attributes.html
@@ -18,9 +18,11 @@
switch (event.type)
{
case "canplaythrough":
+ if (playingCount > 0)
+ return;
testExpected('progressEventCount', 1, '>=');
consoleWrite("<br>*** starting playback");
- run("video.play()");
+ run("video.play()");
break;
case "playing":
if (++playingCount == 1) {
« no previous file with comments | « LayoutTests/media/controls-drag-timebar.html ('k') | LayoutTests/media/media-controls-invalid-url.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698