OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="media-file.js"></script> |
| 5 <style> |
| 6 video { |
| 7 outline: 15px solid blue; |
| 8 border: 15px solid green; |
| 9 background: orange; |
| 10 padding: 15px; |
| 11 margin: 20px; |
| 12 width: 300px; |
| 13 } |
| 14 </style> |
| 15 </head> |
| 16 |
| 17 <body> |
| 18 <!-- This test passes if: |
| 19 1) the final colored blocks in the series of the colored blocks in |
| 20 the video content area are respectively: cyan, blue, green |
| 21 2) the video seek point is 00:00:03.19 --> |
| 22 <video/> |
| 23 </body> |
| 24 |
| 25 <script> |
| 26 window.onload = function() { |
| 27 var video = document.querySelector('video'); |
| 28 |
| 29 video.oncanplaythrough = function() { |
| 30 if (window.testRunner) |
| 31 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100
); |
| 32 seek(video, 3.8); |
| 33 }; |
| 34 |
| 35 setSrcByTagName('video', findMediaFile('video', 'content/test')); |
| 36 }; |
| 37 |
| 38 function seek(video, time) { |
| 39 video.currentTime = time; |
| 40 } |
| 41 |
| 42 function done() { |
| 43 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 44 } |
| 45 |
| 46 if (window.internals) |
| 47 internals.settings.setImageColorProfilesEnabled(true); |
| 48 |
| 49 if (window.testRunner) { |
| 50 testRunner.dumpAsTextWithPixelResults(); |
| 51 testRunner.waitUntilDone(); |
| 52 } |
| 53 </script> |
| 54 </html> |
OLD | NEW |