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

Side by Side Diff: LayoutTests/fast/images/color-profile-animate.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
« no previous file with comments | « no previous file | LayoutTests/fast/images/color-profile-background-clip-text.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <style>
4 .fade {
5 -webkit-animation: fader linear 0.5s
6 }
7
8 @-webkit-keyframes fader {
9 0% { opacity: 1.0 }
10 50% { opacity: 0.0 }
11 }
12 </style>
13
14 <!-- The blue sector of the image should be at 12 o'clock. -->
15 <img onload="fade(this)" width="400px" src="resources/red-at-12-oclock-with-colo r-profile.jpg">
16
17 <script>
18 function fade(element) {
19 element.addEventListener('webkitAnimationEnd', end, false);
20 element.classList.toggle('fade');
21 }
22
23 function end(event) {
24 if (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 | « no previous file | LayoutTests/fast/images/color-profile-background-clip-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698