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 <!-- There should be no red on this page. --> | 5 <!-- There should be no red on this page. --> |
6 <body> | 6 <body> |
7 <svg width="98%" height="400px"> | 7 <svg width="98%" height="400px"> |
8 <pattern id="pattern" patternUnits="userSpaceOnUse" y="20" width="400" height=
"120" patternTransform="scale(0.4)"> | 8 <pattern id="pattern" patternUnits="userSpaceOnUse" y="20" width="400" height=
"120" patternTransform="scale(0.4)"> |
9 <image onload="top.load()" xlink:href="resources/red-at-12-oclock-with-color
-profile.jpg" width="400" height="400"/> | 9 <image onload="top.load()" xlink:href="resources/red-at-12-oclock-with-color
-profile.jpg" width="400" height="400"/> |
10 </pattern> | 10 </pattern> |
11 <text x="10" y="70" style="fill: url(#pattern); font: 140px Ahem, sans-serif;
-webkit-font-smoothing: none;"> | 11 <text x="10" y="70" style="fill: url(#pattern); font: 140px Ahem, sans-serif;
-webkit-font-smoothing: none;"> |
12 ▅▅▅▅▅▅▅▅▅▅▅
;▅▅▅▅▅ | 12 ▅▅▅▅▅▅▅▅▅▅▅
;▅▅▅▅▅ |
13 </text> | 13 </text> |
14 </svg> | 14 </svg> |
15 </body> | 15 </body> |
16 | 16 |
17 <script> | 17 <script> |
18 function load() { | 18 function load() { |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 runAfterLayoutAndPaint(changeColorProfile); | 20 runAfterLayoutAndPaint(changeColorProfile); |
21 } | 21 } |
22 | 22 |
23 function changeColorProfile() { | 23 function changeColorProfile() { |
24 testRunner.setColorProfile('whacked', done); | 24 testRunner.setColorProfile('colorSpin', done); |
25 } | 25 } |
26 | 26 |
27 function done() { | 27 function done() { |
28 setTimeout(function() { testRunner.notifyDone() }, 0); | 28 setTimeout(function() { testRunner.notifyDone() }, 0); |
29 } | 29 } |
30 | 30 |
31 if (window.internals) | |
32 internals.settings.setImageColorProfilesEnabled(true); | |
33 | |
34 if (window.testRunner) { | 31 if (window.testRunner) { |
35 testRunner.dumpAsTextWithPixelResults(); | 32 testRunner.dumpAsTextWithPixelResults(); |
36 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
37 } | 34 } |
38 </script> | 35 </script> |
39 </html> | 36 </html> |
OLD | NEW |