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

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

Powered by Google App Engine
This is Rietveld 408576698