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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-border-radius.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 .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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698