| OLD | NEW | 
|---|
| 1 <html> | 1 <html> | 
| 2     <title>Test media source replacement</title> | 2     <title>Test media source replacement</title> | 
| 3     <body> | 3     <body> | 
| 4 | 4 | 
| 5     <p>Test that media keeps playing when the source element is replaced.</p> | 5     <p>Test that media keeps playing when the source element is replaced.</p> | 
| 6 | 6 | 
|  | 7     <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 
|  | 8          (Please avoid writing new tests using video-test.js) --> | 
| 7     <script src=video-test.js></script> | 9     <script src=video-test.js></script> | 
| 8     <script src=media-file.js></script> | 10     <script src=media-file.js></script> | 
| 9     <script src=../resources/gc.js></script> | 11     <script src=../resources/gc.js></script> | 
| 10     <script> | 12     <script> | 
| 11         var timeupdateEventCount = 0; | 13         var timeupdateEventCount = 0; | 
| 12         var skippedCount = 0; | 14         var skippedCount = 0; | 
| 13         var sourceReplaced = false; | 15         var sourceReplaced = false; | 
| 14 | 16 | 
| 15         function swapAudio() { | 17         function swapAudio() { | 
| 16             v = document.getElementsByTagName('audio')[0]; | 18             v = document.getElementsByTagName('audio')[0]; | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 100 | 102 | 
| 101         } | 103         } | 
| 102 | 104 | 
| 103         document.write("<audio controls></audio>"); | 105         document.write("<audio controls></audio>"); | 
| 104         testAudioElement(0); | 106         testAudioElement(0); | 
| 105         gc(); | 107         gc(); | 
| 106     </script> | 108     </script> | 
| 107 | 109 | 
| 108     </body> | 110     </body> | 
| 109 </html> | 111 </html> | 
| OLD | NEW | 
|---|