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 canvas, img { margin-bottom: -10px; } | 6 canvas, img { margin-bottom: -10px; } |
7 </style> | 7 </style> |
8 | 8 |
9 <body style="overflow: hidden"> | 9 <body style="overflow: hidden"> |
10 <!-- The red sector of the canvas images should be at 12 o'clock. --> | 10 <!-- The red sector of the canvas images should be at 12 o'clock. --> |
(...skipping 27 matching lines...) Expand all Loading... |
38 var canvas = document.querySelector('canvas'); | 38 var canvas = document.querySelector('canvas'); |
39 | 39 |
40 canvas.getContext('2d').clearRect(0, 0, canvas.width, canvas.height); | 40 canvas.getContext('2d').clearRect(0, 0, canvas.width, canvas.height); |
41 canvas.getContext('2d').drawImage(image, 0, 0); | 41 canvas.getContext('2d').drawImage(image, 0, 0); |
42 | 42 |
43 if (window.testRunner) | 43 if (window.testRunner) |
44 runAfterLayoutAndPaint(setWhackedColorProfile); | 44 runAfterLayoutAndPaint(setWhackedColorProfile); |
45 } | 45 } |
46 | 46 |
47 function setWhackedColorProfile() { | 47 function setWhackedColorProfile() { |
48 window.testRunner.setColorProfile('whacked', done); | 48 window.testRunner.setColorProfile('colorSpin', done); |
49 } | 49 } |
50 | 50 |
51 function done() { | 51 function done() { |
52 setTimeout(function() { window.testRunner.notifyDone() }, 0); | 52 setTimeout(function() { window.testRunner.notifyDone() }, 0); |
53 } | 53 } |
54 | 54 |
55 if (window.internals) | |
56 internals.settings.setImageColorProfilesEnabled(true); | |
57 | |
58 if (window.testRunner) { | 55 if (window.testRunner) { |
59 testRunner.dumpAsTextWithPixelResults(); | 56 testRunner.dumpAsTextWithPixelResults(); |
60 testRunner.waitUntilDone(); | 57 testRunner.waitUntilDone(); |
61 } | 58 } |
62 </script> | 59 </script> |
63 </html> | 60 </html> |
OLD | NEW |