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:000:00.00 --> |
| 22 <video/> |
| 23 </body> |
| 24 |
| 25 <script> |
| 26 if (window.testRunner) { |
| 27 testRunner.dumpAsTextWithPixelResults(); |
| 28 testRunner.waitUntilDone(); |
| 29 } |
| 30 |
| 31 window.onload = function() { |
| 32 if (window.internals) |
| 33 internals.settings.setImageColorProfilesEnabled(true); |
| 34 |
| 35 if (window.testRunner) { |
| 36 document.querySelector('video').oncanplaythrough = function() { |
| 37 testRunner.setColorProfile('whacked', done); |
| 38 }; |
| 39 } |
| 40 |
| 41 setSrcByTagName('video', findMediaFile('video', 'content/test')); |
| 42 }; |
| 43 |
| 44 function done() { |
| 45 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 46 } |
| 47 </script> |
| 48 </html> |
OLD | NEW |