OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 @-webkit-keyframes rotate { | 4 @-webkit-keyframes rotate { |
5 0% { -webkit-transform: rotate(0deg) } | 5 0% { -webkit-transform: rotate(0deg) } |
6 } | 6 } |
7 | 7 |
8 img { | 8 img { |
9 -webkit-transform: rotate(90deg); | 9 -webkit-transform: rotate(90deg); |
10 } | 10 } |
(...skipping 11 matching lines...) Expand all Loading... |
22 element.addEventListener('webkitAnimationEnd', end, false); | 22 element.addEventListener('webkitAnimationEnd', end, false); |
23 | 23 |
24 if (window.testRunner) | 24 if (window.testRunner) |
25 element.style.cssText += '-webkit-animation: rotate linear 1s'; | 25 element.style.cssText += '-webkit-animation: rotate linear 1s'; |
26 else | 26 else |
27 element.style.cssText += '-webkit-animation: rotate linear 4s'; | 27 element.style.cssText += '-webkit-animation: rotate linear 4s'; |
28 } | 28 } |
29 | 29 |
30 function start(event) { | 30 function start(event) { |
31 if (window.testRunner) | 31 if (window.testRunner) |
32 setTimeout(function() { testRunner.setColorProfile('whacked', new Function()
) }, 100); | 32 setTimeout(function() { testRunner.setColorProfile('colorSpin', new Function
()) }, 100); |
33 } | 33 } |
34 | 34 |
35 function end(event) { | 35 function end(event) { |
36 if (window.testRunner) | 36 if (window.testRunner) |
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 |