| 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 .test { | 6 .test { |
| 7 object-fit: contain; | 7 object-fit: contain; |
| 8 height: 200px; | 8 height: 200px; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 2) the video seek point is near 00:00:03.19 --> | 26 2) the video seek point is near 00:00:03.19 --> |
| 27 <video class="test"/> | 27 <video class="test"/> |
| 28 </body> | 28 </body> |
| 29 | 29 |
| 30 <script> | 30 <script> |
| 31 window.onload = function() { | 31 window.onload = function() { |
| 32 var video = document.querySelector('video'); | 32 var video = document.querySelector('video'); |
| 33 | 33 |
| 34 video.addEventListener('seeked', function() { | 34 video.addEventListener('seeked', function() { |
| 35 if (window.testRunner) | 35 if (window.testRunner) |
| 36 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 1
00); | 36 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 37 video.pause(); | 37 video.pause(); |
| 38 }, false); | 38 }, false); |
| 39 | 39 |
| 40 setSrcByTagName('video', findMediaFile('video', 'content/test')); | 40 setSrcByTagName('video', findMediaFile('video', 'content/test')); |
| 41 seek(video, 3.8); | 41 seek(video, 3.8); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 function seek(video, time) { | 44 function seek(video, time) { |
| 45 video.currentTime = time; | 45 video.currentTime = time; |
| 46 } | 46 } |
| 47 | 47 |
| 48 function done() { | |
| 49 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 50 } | |
| 51 | |
| 52 if (window.testRunner) { | 48 if (window.testRunner) { |
| 53 testRunner.dumpAsTextWithPixelResults(); | 49 testRunner.dumpAsTextWithPixelResults(); |
| 54 testRunner.waitUntilDone(); | 50 testRunner.waitUntilDone(); |
| 55 } | 51 } |
| 56 </script> | 52 </script> |
| 57 </html> | 53 </html> |
| OLD | NEW |