| 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(function() { testRunner.notifyDone() }); |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 function changeColorProfile() { | |
| 22 testRunner.setColorProfile('colorSpin', done); | |
| 23 } | |
| 24 | |
| 25 function done() { | |
| 26 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 27 } | |
| 28 | |
| 29 if (window.testRunner) { | 21 if (window.testRunner) { |
| 30 testRunner.dumpAsTextWithPixelResults(); | 22 testRunner.dumpAsTextWithPixelResults(); |
| 31 testRunner.waitUntilDone(); | 23 testRunner.waitUntilDone(); |
| 32 } | 24 } |
| 33 </script> | 25 </script> |
| 34 </html> | 26 </html> |
| OLD | NEW |