| 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> | 8 <script> |
| 9 var audio, sourceA, sourceB; | 9 var audio, sourceA, sourceB; |
| 10 | 10 |
| 11 function canplaythrough(e) | 11 function canplaythrough(e) |
| 12 { | 12 { |
| 13 testExpected("audio.currentSrc == sourceA.src", true); | 13 testExpected("audio.currentSrc == sourceA.src", true); |
| 14 endTest(); | 14 endTest(); |
| 15 } | 15 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 audio.appendChild(sourceA); | 44 audio.appendChild(sourceA); |
| 45 } | 45 } |
| 46 | 46 |
| 47 window.addEventListener('load', onWindowLoad, false); | 47 window.addEventListener('load', onWindowLoad, false); |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 <body> | 50 <body> |
| 51 <audio id="a"></audio> | 51 <audio id="a"></audio> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |