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

Side by Side Diff: LayoutTests/fast/images/color-profile-layer.html

Issue 266383003: [wip] Add fast/images color profile tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <style>
4 .layer { -webkit-transform: translateZ(0) }
5 </style>
6
7 <body>
8 <!-- The blue sector of the images should be at 12 o'clock. -->
9 <img width="250px" onload="load(this)" src="resources/webp-color-profile-lossy .webp">
10 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co lor-profile.png">
11 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co lor-profile.jpg">
12 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co lor-profile.png">
13 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co lor-profile.jpg">
14 <img width="250px" onload="load(this)" src="resources/webp-color-profile-lossy .webp">
15 </body>
16
17 <script>
18 var images = 0;
19
20 function load(element) {
21 element.classList.add('layer');
22
23 if (++images == 6 && window.testRunner)
24 setTimeout(function() { testRunner.setColorProfile('test', done) }, 100);
25 }
26
27 function done() {
28 setTimeout(function() { testRunner.notifyDone() }, 0);
29 }
30
31 if (window.testRunner) {
32 testRunner.dumpAsTextWithPixelResults();
33 testRunner.waitUntilDone();
34 }
35 </script>
36 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/color-profile-image.html ('k') | LayoutTests/fast/images/color-profile-layer-filter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698