Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-animate-rotate.html

Issue 2217463003: Color profile layout test cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698