OLD | NEW |
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 Loading... |
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> |
OLD | NEW |