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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-layer.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 .layer { 4 .layer {
5 transform: translateZ(0); /* Enable direct compositing. */ 5 transform: translateZ(0); /* Enable direct compositing. */
6 width: 250px; 6 width: 250px;
7 } 7 }
8 </style> 8 </style>
9 9
10 <body> 10 <body>
11 <!-- The blue sector of the images should be at 12 o'clock. --> 11 <!-- The blue sector of the images should be at 12 o'clock. -->
12 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi th-color-profile.png"> 12 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi th-color-profile.png">
13 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi th-color-profile.jpg"> 13 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi th-color-profile.jpg">
14 <img onload="load(this)" title="webp image" src="resources/webp-color-profile- lossy.webp"> 14 <img onload="load(this)" title="webp image" src="resources/webp-color-profile- lossy.webp">
15 <br> 15 <br>
16 <!-- The blue sector of the images should be at 12 o'clock. --> 16 <!-- The blue sector of the images should be at 12 o'clock. -->
17 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi th-color-profile.png"> 17 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi th-color-profile.png">
18 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi th-color-profile.jpg"> 18 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi th-color-profile.jpg">
19 <img onload="load(this)" title="webp image" src="resources/webp-color-profile- lossy.webp"> 19 <img onload="load(this)" title="webp image" src="resources/webp-color-profile- lossy.webp">
20 <br> 20 <br>
21 </body> 21 </body>
22 22
23 <script> 23 <script>
24 var images = 0; 24 var images = 0;
25 25
26 function load(element) { 26 function load(element) {
27 element.classList.add('layer'); 27 element.classList.add('layer');
28 28
29 if (++images == 6 && window.testRunner) 29 if (++images == 6 && window.testRunner)
30 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 500 ); 30 setTimeout(function() { testRunner.notifyDone() }, 0);
31 }
32
33 function done() {
34 setTimeout(function() { testRunner.notifyDone() }, 0);
35 } 31 }
36 32
37 if (window.testRunner) { 33 if (window.testRunner) {
38 testRunner.dumpAsTextWithPixelResults(); 34 testRunner.dumpAsTextWithPixelResults();
39 testRunner.waitUntilDone(); 35 testRunner.waitUntilDone();
40 } 36 }
41 </script> 37 </script>
42 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698