| 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('whacked', done) }, 100
    ); | 36       setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 1
    00); | 
| 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() { | 48 function done() { | 
| 49   setTimeout(function() { testRunner.notifyDone() }, 0); | 49   setTimeout(function() { testRunner.notifyDone() }, 0); | 
| 50 } | 50 } | 
| 51 | 51 | 
| 52 if (window.internals) |  | 
| 53   internals.settings.setImageColorProfilesEnabled(true); |  | 
| 54 |  | 
| 55 if (window.testRunner) { | 52 if (window.testRunner) { | 
| 56   testRunner.dumpAsTextWithPixelResults(); | 53   testRunner.dumpAsTextWithPixelResults(); | 
| 57   testRunner.waitUntilDone(); | 54   testRunner.waitUntilDone(); | 
| 58 } | 55 } | 
| 59 </script> | 56 </script> | 
| 60 </html> | 57 </html> | 
| OLD | NEW | 
|---|