| 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 <style> | 5 <style> |
| 6 video { | 6 video { |
| 7 outline: 15px solid blue; | 7 outline: 15px solid blue; |
| 8 border: 15px solid green; | 8 border: 15px solid green; |
| 9 background: orange; | 9 background: orange; |
| 10 padding: 15px; | 10 padding: 15px; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 2) the video seek point is near 00:00:03.19 --> | 21 2) the video seek point is near 00:00:03.19 --> |
| 22 <video/> | 22 <video/> |
| 23 </body> | 23 </body> |
| 24 | 24 |
| 25 <script> | 25 <script> |
| 26 window.onload = function() { | 26 window.onload = function() { |
| 27 var video = document.querySelector('video'); | 27 var video = document.querySelector('video'); |
| 28 | 28 |
| 29 video.addEventListener('seeked', function() { | 29 video.addEventListener('seeked', function() { |
| 30 if (window.testRunner) | 30 if (window.testRunner) |
| 31 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 1
00); | 31 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 32 video.pause(); | 32 video.pause(); |
| 33 }, false); | 33 }, false); |
| 34 | 34 |
| 35 setSrcByTagName('video', findMediaFile('video', 'content/test')); | 35 setSrcByTagName('video', findMediaFile('video', 'content/test')); |
| 36 seek(video, 3.8); | 36 seek(video, 3.8); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 function seek(video, time) { | 39 function seek(video, time) { |
| 40 video.currentTime = time; | 40 video.currentTime = time; |
| 41 } | 41 } |
| 42 | 42 |
| 43 function done() { | |
| 44 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 45 } | |
| 46 | |
| 47 if (window.testRunner) { | 43 if (window.testRunner) { |
| 48 testRunner.dumpAsTextWithPixelResults(); | 44 testRunner.dumpAsTextWithPixelResults(); |
| 49 testRunner.waitUntilDone(); | 45 testRunner.waitUntilDone(); |
| 50 } | 46 } |
| 51 </script> | 47 </script> |
| 52 </html> | 48 </html> |
| OLD | NEW |