| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
| 4 <script src="/media-resources/video-test.js"></script> | 6 <script src="/media-resources/video-test.js"></script> |
| 5 </head> | 7 </head> |
| 6 <body> | 8 <body> |
| 7 <video autoplay controls="controls" id='vid'></video> | 9 <video autoplay controls="controls" id='vid'></video> |
| 8 <p>Tests that sourceopen event fires even if garbage collection happens
between setting video.src & the sourceopen event.</p> | 10 <p>Tests that sourceopen event fires even if garbage collection happens
between setting video.src & the sourceopen event.</p> |
| 9 <script type="text/javascript"> | 11 <script type="text/javascript"> |
| 10 var sourceOpened = false; | 12 var sourceOpened = false; |
| 11 | 13 |
| 12 function createMediaSourceURL() | 14 function createMediaSourceURL() |
| 13 { | 15 { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 39 consoleWrite("Running garbage collector."); | 41 consoleWrite("Running garbage collector."); |
| 40 gc(); | 42 gc(); |
| 41 | 43 |
| 42 consoleWrite("Setting video.src to object URL."); | 44 consoleWrite("Setting video.src to object URL."); |
| 43 video.src = url; | 45 video.src = url; |
| 44 } | 46 } |
| 45 start(); | 47 start(); |
| 46 </script> | 48 </script> |
| 47 </body> | 49 </body> |
| 48 </html> | 50 </html> |
| OLD | NEW |