| 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 p { | 6 p { |
| 7 background-image: -webkit-cross-fade( | 7 background-image: -webkit-cross-fade( |
| 8 url("resources/red-at-12-oclock-with-color-profile.jpg"), url("resources/g
reen-256x256.jpg"), 6%); | 8 url("resources/red-at-12-oclock-with-color-profile.jpg"), url("resources/g
reen-256x256.jpg"), 6%); |
| 9 margin: 6px 6px 6px 9px; | 9 margin: 6px 6px 6px 9px; |
| 10 display: inline-block; | 10 display: inline-block; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 <!-- The blue sector of the background images should be at 12 o'clock. --> | 21 <!-- The blue sector of the background images should be at 12 o'clock. --> |
| 22 <p></p> | 22 <p></p> |
| 23 <p></p> | 23 <p></p> |
| 24 <p></p> | 24 <p></p> |
| 25 <p></p> | 25 <p></p> |
| 26 </body> | 26 </body> |
| 27 | 27 |
| 28 <script> | 28 <script> |
| 29 window.onload = function() { | 29 window.onload = function() { |
| 30 if (window.testRunner) | 30 if (window.testRunner) |
| 31 runAfterLayoutAndPaint(changeColorProfile); | 31 runAfterLayoutAndPaint(function() { testRunner.notifyDone() }); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 function changeColorProfile() { | |
| 35 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100); | |
| 36 } | |
| 37 | |
| 38 function done() { | |
| 39 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 40 } | |
| 41 | |
| 42 if (window.testRunner) { | 34 if (window.testRunner) { |
| 43 testRunner.dumpAsTextWithPixelResults(); | 35 testRunner.dumpAsTextWithPixelResults(); |
| 44 testRunner.waitUntilDone(); | 36 testRunner.waitUntilDone(); |
| 45 } | 37 } |
| 46 </script> | 38 </script> |
| 47 </html> | 39 </html> |
| OLD | NEW |