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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-filter.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 .filter { -webkit-filter: blur(3px) } 4 .filter { -webkit-filter: blur(3px) }
5 </style> 5 </style>
6 6
7 <body> 7 <body>
8 <!-- The blue sector of the images should be at 12 o'clock. --> 8 <!-- The blue sector of the images should be at 12 o'clock. -->
9 <img width="250px" title="png image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.png"> 9 <img width="250px" title="png image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.png">
10 <img width="250px" title="jpeg image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.jpg"> 10 <img width="250px" title="jpeg image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.jpg">
11 <img width="250px" title="webp image" onload="load(this)" src="resources/webp- color-profile-lossy.webp"><br> 11 <img width="250px" title="webp image" onload="load(this)" src="resources/webp- color-profile-lossy.webp"><br>
12 12
13 <img width="250px" title="png image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.png"> 13 <img width="250px" title="png image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.png">
14 <img width="250px" title="jpeg image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.jpg"> 14 <img width="250px" title="jpeg image" onload="load(this)" src="resources/red-a t-12-oclock-with-color-profile.jpg">
15 <img width="250px" title="webp image" onload="load(this)" src="resources/webp- color-profile-lossy.webp"><br> 15 <img width="250px" title="webp image" onload="load(this)" src="resources/webp- color-profile-lossy.webp"><br>
16 </body> 16 </body>
17 17
18 <script> 18 <script>
19 var images = 0; 19 var images = 0;
20 20
21 function load(element) { 21 function load(element) {
22 element.classList.add('filter'); 22 element.classList.add('filter');
23 23
24 if (++images == 6 && window.testRunner) 24 if (++images == 6 && window.testRunner)
25 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); 25 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100 );
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

Powered by Google App Engine
This is Rietveld 408576698