OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 .border { | 4 .border { |
5 border: 5px solid transparent; /* So the <img> under test can not be a direc
tly composited. */ | 5 border: 5px solid transparent; /* So the <img> under test can not be a direc
tly composited. */ |
6 border-radius: 220px; | 6 border-radius: 220px; |
7 height: 240px; | 7 height: 240px; |
8 } | 8 } |
9 </style> | 9 </style> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 <br> | 23 <br> |
24 </body> | 24 </body> |
25 | 25 |
26 <script> | 26 <script> |
27 var images = 0; | 27 var images = 0; |
28 | 28 |
29 function load(element) { | 29 function load(element) { |
30 element.classList.add('border'); | 30 element.classList.add('border'); |
31 | 31 |
32 if (++images == 6 && window.testRunner) | 32 if (++images == 6 && window.testRunner) |
33 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); | 33 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100
); |
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 |