| 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 <!-- https://crbug.com/411183 Test case for svg with <image> children | 5 <!-- https://crbug.com/411183 Test case for svg with <image> children |
| 6 having xlink:href dataURL sources that contain a color profile. --> | 6 having xlink:href dataURL sources that contain a color profile. --> |
| 7 <body> | 7 <body> |
| 8 <!-- The blue sector of the 3 test images should be at 12 o'clock. --> | 8 <!-- The blue sector of the 3 test images should be at 12 o'clock. --> |
| 9 <img onload="load()" src="resources/color-profile-image-data-url.svg"> | 9 <img onload="load()" src="resources/color-profile-image-data-url.svg"> |
| 10 </body> | 10 </body> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 function load() { | 13 function load() { |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 runAfterLayoutAndPaint(changeColorProfile); | 15 runAfterLayoutAndPaint(function() { testRunner.notifyDone() }); |
| 16 } | |
| 17 | |
| 18 function changeColorProfile() { | |
| 19 testRunner.setColorProfile('colorSpin', done); | |
| 20 } | |
| 21 | |
| 22 function done() { | |
| 23 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 24 } | 16 } |
| 25 | 17 |
| 26 if (window.testRunner) { | 18 if (window.testRunner) { |
| 27 testRunner.dumpAsTextWithPixelResults(); | 19 testRunner.dumpAsTextWithPixelResults(); |
| 28 testRunner.waitUntilDone(); | 20 testRunner.waitUntilDone(); |
| 29 } | 21 } |
| 30 </script> | 22 </script> |
| 31 </html> | 23 </html> |
| OLD | NEW |