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

Unified Diff: LayoutTests/media/track/track-cue-rendering.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-cue-rendering.html
diff --git a/LayoutTests/media/track/track-cue-rendering.html b/LayoutTests/media/track/track-cue-rendering.html
index cdf1b083a3e97d913c5dc5022b0989635f22a555..ecf59aba7a9d3adf977e597343f7c5bc34100eae 100644
--- a/LayoutTests/media/track/track-cue-rendering.html
+++ b/LayoutTests/media/track/track-cue-rendering.html
@@ -7,7 +7,7 @@
<script src=../video-test.js></script>
<script src=../media-controls.js></script>
- <script>
+ <script>
var testTrack;
var testCueDisplayBox;
@@ -71,9 +71,9 @@
testTrack = document.querySelector('track');
video.src = findMediaFile('video', '../content/test');
waitForEvent('seeked', seeked);
- waitForEvent('canplaythrough', function() { video.currentTime = .5; });
+ waitForEventOnce('canplaythrough', function() { video.currentTime = .5; });
}
-
+
</script>
</head>
<body onload="loaded()">
« no previous file with comments | « LayoutTests/media/track/track-cue-nothing-to-render.html ('k') | LayoutTests/media/track/track-cue-rendering-rtl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698