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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-clip.html

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 years, 6 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 .t0 { -webkit-transform: translate(-60px, 0px); } 4 .t0 { -webkit-transform: translate(-60px, 0px); }
5 .t1 { -webkit-transform: translate(405px, 0px); } 5 .t1 { -webkit-transform: translate(405px, 0px); }
6 .t2 { top: -462px; left: 240px; -webkit-transform: rotate(-90deg); } 6 .t2 { top: -462px; left: 240px; -webkit-transform: rotate(-90deg); }
7 7
8 img { 8 img {
9 position: absolute; 9 position: absolute;
10 clip: rect(30px, 300px, 240px, 90px); 10 clip: rect(30px, 300px, 240px, 90px);
11 } 11 }
12 </style> 12 </style>
13 13
14 <body style="overflow: hidden"> 14 <body style="overflow: hidden">
15 <!-- There should be no red on this page. --> 15 <!-- There should be no red on this page. -->
16 <img class="t0" title="jpg image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.jpg"> 16 <img class="t0" title="jpg image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.jpg">
17 <img class="t1" title="png image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.png"> 17 <img class="t1" title="png image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.png">
18 <img class="t2" title="jpg image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.jpg"> 18 <img class="t2" title="jpg image" onload="load()" src="resources/red-at-12-ocl ock-with-color-profile.jpg">
19 </body> 19 </body>
20 20
21 <script> 21 <script>
22 var images = 0; 22 var images = 0;
23 23
24 function load() { 24 function load() {
25 if (++images == 3 && window.testRunner) 25 if (++images == 3 && window.testRunner)
26 testRunner.setColorProfile('colorSpin', done); 26 setTimeout(function() { testRunner.notifyDone() }, 0);
27 }
28
29 function done() {
30 setTimeout(function() { testRunner.notifyDone() }, 0);
31 } 27 }
32 28
33 if (window.testRunner) { 29 if (window.testRunner) {
34 testRunner.dumpAsTextWithPixelResults(); 30 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone(); 31 testRunner.waitUntilDone();
36 } 32 }
37 </script> 33 </script>
38 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698