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