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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-border-image.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 -webkit-border-image: url("resources/red-at-12-oclock-with-color-profile.jpg ") 8 2 round; 7 -webkit-border-image: url("resources/red-at-12-oclock-with-color-profile.jpg ") 8 2 round;
8 border-style: solid; 8 border-style: solid;
9 height: 320px; 9 height: 320px;
10 width: 90%; 10 width: 90%;
11 } 11 }
12 </style> 12 </style>
13 13
14 <!-- The blue sector of the <div> background image should be at 12 o'clock. --> 14 <!-- The blue sector of the <div> background image should be at 12 o'clock. -->
15 <div></div> 15 <div></div>
16 16
17 <script> 17 <script>
18 window.onload = function() { 18 window.onload = function() {
19 if (window.testRunner) 19 if (window.testRunner)
20 runAfterLayoutAndPaint(changeColorProfile); 20 runAfterLayoutAndPaint(changeColorProfile);
21 }; 21 };
22 22
23 function changeColorProfile() { 23 function changeColorProfile() {
24 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); 24 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100);
25 } 25 }
26 26
27 function done() { 27 function done() {
28 setTimeout(function() { testRunner.notifyDone() }, 0); 28 setTimeout(function() { testRunner.notifyDone() }, 0);
29 } 29 }
30 30
31 if (window.internals)
32 internals.settings.setImageColorProfilesEnabled(true);
33
34 if (window.testRunner) { 31 if (window.testRunner) {
35 testRunner.dumpAsTextWithPixelResults(); 32 testRunner.dumpAsTextWithPixelResults();
36 testRunner.waitUntilDone(); 33 testRunner.waitUntilDone();
37 } 34 }
38 </script> 35 </script>
39 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698