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; |
(...skipping 12 matching lines...) Expand all Loading... |
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(changeColorProfile); |
30 }; | 30 }; |
31 | 31 |
32 function changeColorProfile() { | 32 function changeColorProfile() { |
33 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); | 33 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100); |
34 } | 34 } |
35 | 35 |
36 function done() { | 36 function done() { |
37 setTimeout(function() { testRunner.notifyDone() }, 0); | 37 setTimeout(function() { testRunner.notifyDone() }, 0); |
38 } | 38 } |
39 | 39 |
40 if (window.internals) | |
41 internals.settings.setImageColorProfilesEnabled(true); | |
42 | |
43 if (window.testRunner) { | 40 if (window.testRunner) { |
44 testRunner.dumpAsTextWithPixelResults(); | 41 testRunner.dumpAsTextWithPixelResults(); |
45 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
46 } | 43 } |
47 </script> | 44 </script> |
48 </html> | 45 </html> |
OLD | NEW |