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

Side by Side Diff: LayoutTests/web-animations-api/w3c/2-keyframes-with-offsets.html

Issue 253963002: Web Animations API: Add layout tests for element.animate() keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added comment Created 6 years, 5 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/web-animations-api/w3c/3-keyframes-with-offsets.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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="resources/keyframes-test.js"></script>
5 <script>
6 test(function() {
7 assertAnimationStyles([
8 {opacity: '0.25', left: '25px', offset: 0},
9 {opacity: '0.75', left: '75px'},
10 ], {
11 0.5: {opacity: '0.5', left: '50px'},
12 });
13 assertAnimationStyles([
14 {opacity: '0.25', left: '25px'},
15 {opacity: '0.75', left: '75px', offset: 1},
16 ], {
17 0.5: {opacity: '0.5', left: '50px'},
18 });
19 },
20 'element.animate() with 2 keyframes and 1 offset specified',
21 {
22 help: 'http://dev.w3.org/fxtf/web-animations/#keyframe-animation-effects',
23 assert: [
24 'element.animate() should start an animation when two keyframes',
25 'are provided with matching properties and one offset is specified.',
26 ],
27 author: 'Alan Cutter',
28 });
29
30 test(function() {
31 assertAnimationStyles([
32 {opacity: '0.25', left: '25px', offset: 0},
33 {opacity: '0.75', left: '75px', offset: 1},
34 ], {
35 0.5: {opacity: '0.5', left: '50px'},
36 });
37 assertAnimationStyles([
38 {opacity: '0.75', left: '75px', offset: 1},
39 {opacity: '0.25', left: '25px', offset: 0},
40 ], {
41 0.5: {opacity: '0.5', left: '50px'},
42 });
43 },
44 'element.animate() with 2 keyframes and 2 offsets specified',
45 {
46 help: 'http://dev.w3.org/fxtf/web-animations/#keyframe-animation-effects',
47 assert: [
48 'element.animate() should start an animation when two keyframes',
49 'are provided with matching properties and both offsets specified.',
50 ],
51 author: 'Alan Cutter',
52 });
53 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/w3c/3-keyframes-with-offsets.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698