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

Side by Side Diff: LayoutTests/fast/images/color-profile-image.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 img { border: 1px solid transparent }
5 </style>
6
7 <body>
8 <!-- The blue sector of the images should be at 12 o'clock. -->
9 <img width="250px" onload="load()" src="resources/webp-color-profile-lossy.web p">
10 <img width="250px" onload="load()" src="resources/red-at-12-oclock-with-color- profile.png">
11 <img width="250px" onload="load()" src="resources/red-at-12-oclock-with-color- profile.jpg">
12 <img width="250px" onload="load()" src="resources/webp-color-profile-lossy.web p">
13 <img width="250px" onload="load()" src="resources/red-at-12-oclock-with-color- profile.png">
14 <img width="250px" onload="load()" src="resources/red-at-12-oclock-with-color- profile.jpg">
15 </body>
16
17 <script>
18 var images = 0;
19
20 function load() {
21 if (++images == 6 && window.testRunner)
22 testRunner.setColorProfile('test', done);
23 }
24
25 function done() {
26 setTimeout(function() { testRunner.notifyDone() }, 0);
27 }
28
29 if (window.testRunner) {
30 testRunner.dumpAsTextWithPixelResults();
31 testRunner.waitUntilDone();
32 }
33 </script>
34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/color-profile-iframe.html ('k') | LayoutTests/fast/images/color-profile-layer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698