| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 4 |
| 5 <style> |
| 6 img { width: 258px } |
| 7 </style> |
| 8 |
| 9 <body style="overflow: hidden"> |
| 10 <!-- The blue sector of the images should be at 12 o'clock. --> |
| 11 <img title="jpeg image" onload="load()" src="resources/blue-wheel-srgb-color-p
rofile.jpg"> |
| 12 <img title="webp image" onload="load()" src="resources/blue-wheel-srgb-color-p
rofile.webp"> |
| 13 <img title="png image" onload="load()" src="resources/blue-wheel-srgb-color-p
rofile.png"> |
| 14 </body> |
| 15 |
| 16 <script> |
| 17 var images = 0; |
| 18 |
| 19 function load() { |
| 20 if (++images == 3 && window.testRunner) |
| 21 runAfterLayoutAndPaint(changeColorProfile); |
| 22 } |
| 23 |
| 24 function changeColorProfile() { |
| 25 /* The test images have an sRGB color profile and so should pass through |
| 26 * color correction unchanged if the device profile is sRGB. |
| 27 */ |
| 28 testRunner.setColorProfile('sRGB', done); |
| 29 } |
| 30 |
| 31 function done() { |
| 32 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 33 } |
| 34 |
| 35 if (window.internals) |
| 36 internals.settings.setImageColorProfilesEnabled(true); |
| 37 |
| 38 if (window.testRunner) { |
| 39 testRunner.dumpAsTextWithPixelResults(); |
| 40 testRunner.waitUntilDone(); |
| 41 } |
| 42 </script> |
| 43 </html> |
| OLD | NEW |