| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2 <html> |   2 <html> | 
|   3 <head> |   3 <head> | 
|   4     <script src=media-file.js></script> |   4     <script src=media-file.js></script> | 
|   5     <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |   5     <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 
|   6          (Please avoid writing new tests using video-test.js) --> |   6          (Please avoid writing new tests using video-test.js) --> | 
|   7     <script src=video-test.js></script> |   7     <script src=video-test.js></script> | 
|   8     <script type="text/javascript" charset="utf-8"> |   8     <script type="text/javascript" charset="utf-8"> | 
|   9         function doSetup() |   9         function doSetup() | 
|  10         { |  10         { | 
|  11             video = document.getElementsByTagName('video')[0]; |  11             video = document.getElementsByTagName('video')[0]; | 
|  12             video.src = findMediaFile("video", "content/test"); |  12             video.src = findMediaFile("video", "content/test"); | 
|  13         } |  13         } | 
|  14  |  14  | 
|  15         function doTest () |  15         function doTest () | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  28         } |  28         } | 
|  29  |  29  | 
|  30         window.addEventListener('load', doSetup, false); |  30         window.addEventListener('load', doSetup, false); | 
|  31     </script> |  31     </script> | 
|  32 </head> |  32 </head> | 
|  33 <body> |  33 <body> | 
|  34     <p>Test that removing a media element from the tree pauses playback but does
     not unload the media.</p> |  34     <p>Test that removing a media element from the tree pauses playback but does
     not unload the media.</p> | 
|  35     <video controls autoplay oncanplaythrough="doTest()"></video> |  35     <video controls autoplay oncanplaythrough="doTest()"></video> | 
|  36 </body> |  36 </body> | 
|  37 </html> |  37 </html> | 
| OLD | NEW |