| 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: url("resources/red-at-12-oclock-with-color-profile.jpg") no-repe
at; | 7 background: url("resources/red-at-12-oclock-with-color-profile.jpg") no-repe
at; |
| 8 background-size: cover; | 8 background-size: cover; |
| 9 display: inline-block; | 9 display: inline-block; |
| 10 height: 376px; | 10 height: 376px; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 <div></div> | 22 <div></div> |
| 23 </body> | 23 </body> |
| 24 | 24 |
| 25 <script> | 25 <script> |
| 26 window.onload = function() { | 26 window.onload = function() { |
| 27 if (window.testRunner) | 27 if (window.testRunner) |
| 28 runAfterLayoutAndPaint(changeColorProfile); | 28 runAfterLayoutAndPaint(changeColorProfile); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 function changeColorProfile() { | 31 function changeColorProfile() { |
| 32 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); | 32 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100); |
| 33 } | 33 } |
| 34 | 34 |
| 35 function done() { | 35 function done() { |
| 36 setTimeout(function() { testRunner.notifyDone() }, 0); | 36 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 37 } | 37 } |
| 38 | 38 |
| 39 if (window.internals) | |
| 40 internals.settings.setImageColorProfilesEnabled(true); | |
| 41 | |
| 42 if (window.testRunner) { | 39 if (window.testRunner) { |
| 43 testRunner.dumpAsTextWithPixelResults(); | 40 testRunner.dumpAsTextWithPixelResults(); |
| 44 testRunner.waitUntilDone(); | 41 testRunner.waitUntilDone(); |
| 45 } | 42 } |
| 46 </script> | 43 </script> |
| 47 </html> | 44 </html> |
| OLD | NEW |