OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../resources/run-after-layout-and-paint.js"></script> | 3 <script src="../../resources/run-after-layout-and-paint.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 object { border: 1px solid transparent } | 6 object { border: 1px solid transparent } |
7 </style> | 7 </style> |
8 | 8 |
9 <body> | 9 <body> |
10 <!-- The blue sector of the image should be at 12 o'clock. --> | 10 <!-- The blue sector of the image should be at 12 o'clock. --> |
11 <object width="500px" data="resources/red-at-12-oclock-with-color-profile.jpg"> | 11 <object width="500px" data="resources/red-at-12-oclock-with-color-profile.jpg"> |
12 </object> | 12 </object> |
13 </body> | 13 </body> |
14 | 14 |
15 <script> | 15 <script> |
16 window.onload = function() { | 16 window.onload = function() { |
17 if (window.testRunner) | 17 if (window.testRunner) |
18 runAfterLayoutAndPaint(changeColorProfile); | 18 runAfterLayoutAndPaint(changeColorProfile); |
19 }; | 19 }; |
20 | 20 |
21 function changeColorProfile() { | 21 function changeColorProfile() { |
22 testRunner.setColorProfile('whacked', done); | 22 testRunner.setColorProfile('colorSpin', done); |
23 } | 23 } |
24 | 24 |
25 function done() { | 25 function done() { |
26 setTimeout(function() { testRunner.notifyDone() }, 0); | 26 setTimeout(function() { testRunner.notifyDone() }, 0); |
27 } | 27 } |
28 | 28 |
29 if (window.internals) | |
30 internals.settings.setImageColorProfilesEnabled(true); | |
31 | |
32 if (window.testRunner) { | 29 if (window.testRunner) { |
33 testRunner.dumpAsTextWithPixelResults(); | 30 testRunner.dumpAsTextWithPixelResults(); |
34 testRunner.waitUntilDone(); | 31 testRunner.waitUntilDone(); |
35 } | 32 } |
36 </script> | 33 </script> |
37 </html> | 34 </html> |
OLD | NEW |