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 <object onload="load()" data="resources/color-profile-image-foreign-object.svg
" width="480" height="360" type="image/svg+xml"> | 7 <object onload="load()" data="resources/color-profile-image-foreign-object.svg
" width="480" height="360" type="image/svg+xml"> |
8 <p style="color: red">SVG not supported in this browser</p> | 8 <p style="color: red">SVG not supported in this browser</p> |
9 </object> | 9 </object> |
10 </body> | 10 </body> |
11 | 11 |
12 <script> | 12 <script> |
13 function load() { | 13 function load() { |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 runAfterLayoutAndPaint(changeColorProfile); | 15 runAfterLayoutAndPaint(changeColorProfile); |
16 } | 16 } |
17 | 17 |
18 function changeColorProfile() { | 18 function changeColorProfile() { |
19 testRunner.setColorProfile('whacked', done); | 19 testRunner.setColorProfile('colorSpin', done); |
20 } | 20 } |
21 | 21 |
22 function done() { | 22 function done() { |
23 setTimeout(function() { testRunner.notifyDone() }, 0); | 23 setTimeout(function() { testRunner.notifyDone() }, 0); |
24 } | 24 } |
25 | 25 |
26 if (window.internals) | |
27 internals.settings.setImageColorProfilesEnabled(true); | |
28 | |
29 if (window.testRunner) { | 26 if (window.testRunner) { |
30 testRunner.dumpAsTextWithPixelResults(); | 27 testRunner.dumpAsTextWithPixelResults(); |
31 testRunner.waitUntilDone(); | 28 testRunner.waitUntilDone(); |
32 } | 29 } |
33 </script> | 30 </script> |
34 </html> | 31 </html> |
OLD | NEW |