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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-group.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 margin: -18px 0 5px 0; 9 margin: -18px 0 5px 0;
10 height: 250px; 10 height: 250px;
(...skipping 14 matching lines...) Expand all
25 src="resources/red-at-12-oclock-with-color-profile.jpg"> 25 src="resources/red-at-12-oclock-with-color-profile.jpg">
26 </iframe> 26 </iframe>
27 </body> 27 </body>
28 28
29 <script> 29 <script>
30 function load() { 30 function load() {
31 runAfterLayoutAndPaint(changeColorProfile); 31 runAfterLayoutAndPaint(changeColorProfile);
32 } 32 }
33 33
34 function changeColorProfile() { 34 function changeColorProfile() {
35 testRunner.setColorProfile('whacked', done); 35 testRunner.setColorProfile('colorSpin', done);
36 } 36 }
37 37
38 function done() { 38 function done() {
39 setTimeout(function() { testRunner.notifyDone() }, 0); 39 setTimeout(function() { testRunner.notifyDone() }, 0);
40 } 40 }
41 41
42 if (window.internals)
43 internals.settings.setImageColorProfilesEnabled(true);
44
45 if (window.testRunner) { 42 if (window.testRunner) {
46 testRunner.dumpAsTextWithPixelResults(); 43 testRunner.dumpAsTextWithPixelResults();
47 testRunner.waitUntilDone(); 44 testRunner.waitUntilDone();
48 } 45 }
49 </script> 46 </script>
50 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698