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

Side by Side Diff: LayoutTests/fast/images/color-profile-clip.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 .t0 { -webkit-transform: translate(-60px, 0px) }
5 .t1 { -webkit-transform: translate(405px, 0px) }
6 .t2 { top: -462px; left: 240px; -webkit-transform: rotate(-90deg) }
7
8 img {
9 position: absolute; clip: rect(30px, 300px, 240px, 90px)
10 }
11 </style>
12
13 <body style="overflow: hidden">
14 <!-- There should be no red on this page. -->
15 <img onload="load()" src="resources/red-at-12-oclock-with-color-profile.jpg" c lass="t0">
16 <img onload="load()" src="resources/red-at-12-oclock-with-color-profile.png" c lass="t1">
17 <img onload="load()" src="resources/red-at-12-oclock-with-color-profile.jpg" c lass="t2">
18 </body>
19
20 <script>
21 var images = 0;
22
23 function load() {
24 if (++images == 3 && window.testRunner)
25 testRunner.setColorProfile('test', done);
26 }
27
28 function done() {
29 setTimeout(function() { testRunner.notifyDone() }, 0);
30 }
31
32 if (window.testRunner) {
33 testRunner.dumpAsTextWithPixelResults();
34 testRunner.waitUntilDone();
35 }
36 </script>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/color-profile-border-radius.html ('k') | LayoutTests/fast/images/color-profile-filter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698