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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-background-image-repeat.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 <script src="../../resources/run-after-layout-and-paint.js"></script> 3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4 4
5 <style> 5 <style>
6 div { 6 div {
7 background-image: url("resources/red-at-12-oclock-with-color-profile.jpg"); 7 background-image: url("resources/red-at-12-oclock-with-color-profile.jpg");
8 background-size: 50% 50%; 8 background-size: 50% 50%;
9 background-repeat: repeat; 9 background-repeat: repeat;
10 display: inline-block; 10 display: inline-block;
(...skipping 12 matching lines...) Expand all
23 <div></div> 23 <div></div>
24 </body> 24 </body>
25 25
26 <script> 26 <script>
27 window.onload = function() { 27 window.onload = function() {
28 if (window.testRunner) 28 if (window.testRunner)
29 runAfterLayoutAndPaint(changeColorProfile); 29 runAfterLayoutAndPaint(changeColorProfile);
30 }; 30 };
31 31
32 function changeColorProfile() { 32 function changeColorProfile() {
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