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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/color-profile-image-profile-match.html

Issue 1309393007: [poc] redecode Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resetColorProfileForTesting rename Created 5 years 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4
5 <style>
6 img { width: 258px }
7 </style>
8
9 <body style="overflow: hidden">
10 <!-- The blue sector of the images should be at 12 o'clock. -->
11 <img title="jpeg image" onload="load()" src="resources/blue-wheel-srgb-color-p rofile.jpg">
12 <img title="webp image" onload="load()" src="resources/blue-wheel-srgb-color-p rofile.webp">
13 <img title="png image" onload="load()" src="resources/blue-wheel-srgb-color-p rofile.png">
14 </body>
15
16 <script>
17 var images = 0;
18
19 function load() {
20 if (++images == 3 && window.testRunner)
21 runAfterLayoutAndPaint(changeColorProfile);
22 }
23
24 function changeColorProfile() {
25 /* The test images have an sRGB color profile and so should pass through
26 * color correction unchanged if the device profile is sRGB.
27 */
28 testRunner.setColorProfile('sRGB', done);
29 }
30
31 function done() {
32 setTimeout(function() { testRunner.notifyDone() }, 0);
33 }
34
35 if (window.internals)
36 internals.settings.setImageColorProfilesEnabled(true);
37
38 if (window.testRunner) {
39 testRunner.dumpAsTextWithPixelResults();
40 testRunner.waitUntilDone();
41 }
42 </script>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698