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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-animate.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 .fade { 4 .fade {
5 -webkit-animation: fader linear 0.5s 5 -webkit-animation: fader linear 0.5s
6 } 6 }
7 7
8 @-webkit-keyframes fader { 8 @-webkit-keyframes fader {
9 0% { opacity: 1.0 } 9 0% { opacity: 1.0 }
10 50% { opacity: 0.0 } 10 50% { opacity: 0.0 }
11 } 11 }
12 </style> 12 </style>
13 13
14 <!-- The blue sector of the image should be at 12 o'clock. --> 14 <!-- The blue sector of the image should be at 12 o'clock. -->
15 <img onload="fade(this)" width="400px" src="resources/red-at-12-oclock-with-colo r-profile.jpg"> 15 <img onload="fade(this)" width="400px" src="resources/red-at-12-oclock-with-colo r-profile.jpg">
16 16
17 <script> 17 <script>
18 function fade(element) { 18 function fade(element) {
19 element.addEventListener('webkitAnimationEnd', end, false); 19 element.addEventListener('webkitAnimationEnd', end, false);
20 element.classList.toggle('fade'); 20 element.classList.toggle('fade');
21 } 21 }
22 22
23 function end(event) { 23 function end(event) {
24 if (window.testRunner) 24 if (window.testRunner)
25 testRunner.setColorProfile('whacked', done); 25 testRunner.setColorProfile('colorSpin', done);
26 } 26 }
27 27
28 function done() { 28 function done() {
29 setTimeout(function() { testRunner.notifyDone() }, 0); 29 setTimeout(function() { testRunner.notifyDone() }, 0);
30 } 30 }
31 31
32 if (window.internals)
33 internals.settings.setImageColorProfilesEnabled(true);
34
35 if (window.testRunner) { 32 if (window.testRunner) {
36 testRunner.dumpAsTextWithPixelResults(); 33 testRunner.dumpAsTextWithPixelResults();
37 testRunner.waitUntilDone(); 34 testRunner.waitUntilDone();
38 } 35 }
39 </script> 36 </script>
40 </html> 37 </html>
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | third_party/WebKit/LayoutTests/fast/images/color-profile-animate-rotate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698