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