| OLD | NEW | 
|   1 <html> |   1 <html> | 
|   2 <head> |   2 <head> | 
|   3 <script src=../../media-resources/media-file.js></script> |   3 <script src=../../media-resources/media-file.js></script> | 
|   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 <script> |   7 <script> | 
|   8     var file = findMediaFile("video", "http://127.0.0.1:8000/resources/test"); |   8     var file = findMediaFile("video", "http://127.0.0.1:8000/resources/test"); | 
|   9  |   9  | 
|  10     function createVideo() { |  10     function createVideo() { | 
|  11         var video = document.createElement("video"); |  11         var video = document.createElement("video"); | 
|  12         document.body.appendChild(video); |  12         document.body.appendChild(video); | 
|  13         findMediaElement(); |  13         findMediaElement(); | 
|  14         waitForEvent('loadedmetadata'); |  14         waitForEvent('loadedmetadata'); | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
|  26     function init() { |  26     function init() { | 
|  27         createVideo(); |  27         createVideo(); | 
|  28         waitForEventOnce('canplaythrough', firstCanPlayThrough); |  28         waitForEventOnce('canplaythrough', firstCanPlayThrough); | 
|  29         run("video.src = file"); |  29         run("video.src = file"); | 
|  30     } |  30     } | 
|  31 </script> |  31 </script> | 
|  32 </head> |  32 </head> | 
|  33 <body onload="init()"> |  33 <body onload="init()"> | 
|  34 </body> |  34 </body> | 
|  35 </html> |  35 </html> | 
| OLD | NEW |