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

Side by Side Diff: LayoutTests/http/tests/media/media-source/mediasource-duration.html

Issue 245893002: Improve unprefixed MediaSource test coverage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/w3c/resources/testharness.js"></script> 4 <script src="/w3c/resources/testharness.js"></script>
5 <script src="/w3c/resources/testharnessreport.js"></script> 5 <script src="/w3c/resources/testharnessreport.js"></script>
6 <script src="mediasource-util.js"></script> 6 <script src="mediasource-util.js"></script>
7 <link rel='stylesheet' href='/w3c/resources/testharness.css'> 7 <link rel='stylesheet' href='/w3c/resources/testharness.css'>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Allow media to play to end while counting 'durationchange' events. 191 // Allow media to play to end while counting 'durationchange' events.
192 test.expectEvent(mediaElement, 'ended', 'Playback ended'); 192 test.expectEvent(mediaElement, 'ended', 'Playback ended');
193 test.waitForExpectedEvents(function() 193 test.waitForExpectedEvents(function()
194 { 194 {
195 mediaElement.removeEventListener('durationchange', duratio nchangeEventHandler); 195 mediaElement.removeEventListener('durationchange', duratio nchangeEventHandler);
196 assert_equals(durationchangeEventCounter, expectedDuration ChangeEventCount, 'durationchanges'); 196 assert_equals(durationchangeEventCounter, expectedDuration ChangeEventCount, 'durationchanges');
197 test.done(); 197 test.done();
198 }); 198 });
199 }); 199 });
200 }, 'Test setting same duration multiple times does not fire duplicate durationchange', {timeout: 2500}); 200 }, 'Test setting same duration multiple times does not fire duplicate durationchange', {timeout: 2500});
201
201 </script> 202 </script>
202 </body> 203 </body>
203 </html> 204 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698