| 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 div { | 6 div { |
| 7 background-image: url("resources/red-at-12-oclock-with-color-profile.jpg"); | 7 background-image: url("resources/red-at-12-oclock-with-color-profile.jpg"); |
| 8 background-size: 50% 50%; | 8 background-size: 50% 50%; |
| 9 background-repeat: repeat; | 9 background-repeat: repeat; |
| 10 display: inline-block; | 10 display: inline-block; |
| 11 height: 376px; | 11 height: 376px; |
| 12 width: 48%; | 12 width: 48%; |
| 13 } | 13 } |
| 14 div, img { | 14 div, img { |
| 15 margin: 5px; | 15 margin: 5px; |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 | 18 |
| 19 <body> | 19 <body> |
| 20 <!-- The _blue_ sector of the <img> image should be at 12 o'clock. --> | 20 <!-- The _blue_ sector of the <img> image should be at 12 o'clock. --> |
| 21 <img width="48%" src="resources/red-at-12-oclock-with-color-profile.jpg"> | 21 <img width="48%" src="resources/red-at-12-oclock-with-color-profile.jpg"> |
| 22 <!-- Same for the <div> background image: should be at 12 o'clock. --> | 22 <!-- Same for the <div> background image: should be at 12 o'clock. --> |
| 23 <div></div> | 23 <div></div> |
| 24 </body> | 24 </body> |
| 25 | 25 |
| 26 <script> | 26 <script> |
| 27 window.onload = function() { | 27 window.onload = function() { |
| 28 if (window.testRunner) | 28 if (window.testRunner) |
| 29 runAfterLayoutAndPaint(changeColorProfile); | 29 runAfterLayoutAndPaint(function() { testRunner.notifyDone() }); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 function changeColorProfile() { | |
| 33 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100); | |
| 34 } | |
| 35 | |
| 36 function done() { | |
| 37 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 38 } | |
| 39 | |
| 40 if (window.testRunner) { | 32 if (window.testRunner) { |
| 41 testRunner.dumpAsTextWithPixelResults(); | 33 testRunner.dumpAsTextWithPixelResults(); |
| 42 testRunner.waitUntilDone(); | 34 testRunner.waitUntilDone(); |
| 43 } | 35 } |
| 44 </script> | 36 </script> |
| 45 </html> | 37 </html> |
| OLD | NEW |