| 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 |   4         <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 
|   5              (Please avoid writing new tests using video-test.js) --> |   5              (Please avoid writing new tests using video-test.js) --> | 
|   6         <script src="/media-resources/video-test.js"></script> |   6         <script src="/media-resources/video-test.js"></script> | 
|   7     </head> |   7     </head> | 
|   8     <body> |   8     <body> | 
|   9         <video autoplay controls="controls" id='vid'></video> |   9         <video autoplay controls="controls" id='vid'></video> | 
|  10         <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> | 
|  11         <script type="text/javascript"> |  11         <script type="text/javascript"> | 
|  12             var sourceOpened = false; |  12             var sourceOpened = false; | 
|  13  |  13  | 
|  14             function createMediaSourceURL() |  14             function createMediaSourceURL() | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|  41                 consoleWrite("Running garbage collector."); |  41                 consoleWrite("Running garbage collector."); | 
|  42                 gc(); |  42                 gc(); | 
|  43  |  43  | 
|  44                 consoleWrite("Setting video.src to object URL."); |  44                 consoleWrite("Setting video.src to object URL."); | 
|  45                 video.src = url; |  45                 video.src = url; | 
|  46             } |  46             } | 
|  47             start(); |  47             start(); | 
|  48         </script> |  48         </script> | 
|  49     </body> |  49     </body> | 
|  50 </html> |  50 </html> | 
| OLD | NEW |