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

Side by Side Diff: LayoutTests/fast/images/color-profile-border-radius.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 .border {
5 /* Add border style so the <img> can not be a directly composited image. */
6 border: 5px solid transparent;
7 border-radius: 220px;
8 height: 240px;
9 }
10 </style>
11 <!-- The blue sector of the image should be at 12 o'clock. The image should be
12 contained within it's CSS border radius circle: it should not look square. -->
13 <img onload="load(this)" src="resources/webp-color-profile-lossy.webp">
14 <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png" >
15 <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.png" >
16 <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg" >
17 <img onload="load(this)" src="resources/red-at-12-oclock-with-color-profile.jpg" >
18 <img onload="load(this)" src="resources/webp-color-profile-lossy.webp">
19
20 <script>
21 var images = 0;
22
23 function load(element) {
24 element.classList.add('border');
25
26 if (++images == 6 && window.testRunner)
27 setTimeout(function() { testRunner.setColorProfile('test', done) }, 100);
28 }
29
30 function done() {
31 setTimeout(function() { testRunner.notifyDone() }, 0);
32 }
33
34 if (window.testRunner) {
35 testRunner.dumpAsTextWithPixelResults();
36 testRunner.waitUntilDone();
37 }
38 </script>
39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/color-profile-border-image.html ('k') | LayoutTests/fast/images/color-profile-clip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698