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 img { | 6 img { |
7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left; | 7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left; |
8 -webkit-mask-size: 33% 33%; | 8 -webkit-mask-size: 33% 33%; |
9 -webkit-mask-repeat: space; | 9 -webkit-mask-repeat: space; |
10 width: 380px; | 10 width: 380px; |
(...skipping 15 matching lines...) Expand all Loading... |
26 <img src="resources/red-at-12-oclock-with-color-profile.jpg"> | 26 <img src="resources/red-at-12-oclock-with-color-profile.jpg"> |
27 </body> | 27 </body> |
28 | 28 |
29 <script> | 29 <script> |
30 function load() { | 30 function load() { |
31 if (window.testRunner) | 31 if (window.testRunner) |
32 runAfterLayoutAndPaint(changeColorProfile); | 32 runAfterLayoutAndPaint(changeColorProfile); |
33 } | 33 } |
34 | 34 |
35 function changeColorProfile() { | 35 function changeColorProfile() { |
36 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); | 36 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100); |
37 } | 37 } |
38 | 38 |
39 function done() { | 39 function done() { |
40 setTimeout(function() { testRunner.notifyDone() }, 0); | 40 setTimeout(function() { testRunner.notifyDone() }, 0); |
41 } | 41 } |
42 | 42 |
43 if (window.internals) | |
44 internals.settings.setImageColorProfilesEnabled(true); | |
45 | |
46 if (window.testRunner) { | 43 if (window.testRunner) { |
47 testRunner.dumpAsTextWithPixelResults(); | 44 testRunner.dumpAsTextWithPixelResults(); |
48 testRunner.waitUntilDone(); | 45 testRunner.waitUntilDone(); |
49 } | 46 } |
50 </script> | 47 </script> |
51 </html> | 48 </html> |
OLD | NEW |