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 -webkit-text-fill-color: transparent; | 7 -webkit-text-fill-color: transparent; |
8 background: url("resources/red-at-12-oclock-with-color-profile.jpg") -20px 1
00px; | 8 background: url("resources/red-at-12-oclock-with-color-profile.jpg") -20px 1
00px; |
9 -webkit-background-clip: text; | 9 -webkit-background-clip: text; |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 <p>▅▅▅▅</p><p>▅▅▅▅</p> | 23 <p>▅▅▅▅</p><p>▅▅▅▅</p> |
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 testRunner.setColorProfile('whacked', done); | 33 testRunner.setColorProfile('colorSpin', done); |
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 |