| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../media/media-file.js"></script> | 4 <script src="../../media/media-file.js"></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
| 5 <script src="../../media/video-test.js"></script> | 7 <script src="../../media/video-test.js"></script> |
| 6 <script type="text/javascript"> | 8 <script type="text/javascript"> |
| 7 if (window.testRunner) { | 9 if (window.testRunner) { |
| 8 window.testRunner.dumpAsTextWithPixelResults(); | 10 window.testRunner.dumpAsTextWithPixelResults(); |
| 9 window.testRunner.waitUntilDone(); | 11 window.testRunner.waitUntilDone(); |
| 10 } | 12 } |
| 11 function runTest() { | 13 function runTest() { |
| 12 video = document.getElementById('video'); | 14 video = document.getElementById('video'); |
| 13 video.addEventListener('canplaythrough', canplaythrough, true); | 15 video.addEventListener('canplaythrough', canplaythrough, true); |
| 14 video.src = findMediaFile('video', '../../media/content/test'); | 16 video.src = findMediaFile('video', '../../media/content/test'); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 video { | 31 video { |
| 30 -webkit-box-reflect: below 0px; | 32 -webkit-box-reflect: below 0px; |
| 31 border: 3px solid red; | 33 border: 3px solid red; |
| 32 } | 34 } |
| 33 </style> | 35 </style> |
| 34 </head> | 36 </head> |
| 35 <body onload="runTest()"> | 37 <body onload="runTest()"> |
| 36 <video id="video"></video> | 38 <video id="video"></video> |
| 37 </body> | 39 </body> |
| 38 </html> | 40 </html> |
| 39 | |
| OLD | NEW |