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

Side by Side Diff: LayoutTests/animations/resources/composited-animations-data/translate-rotate-scale.js

Issue 1270303002: Composited Animations: Introduce pixel-ref layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@disable
Patch Set: Use CSS styles instead of custom flags. Created 5 years, 3 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
OLDNEW
(Empty)
1 var animateTranslate = {
2 keyframes: [
3 {translate: '0px'},
4 {translate: '600px'}
5 ],
6 style: `background: darkgreen; float: none;`,
7 samples: [
8 {at: 0},
9 {at: 0.15},
10 {at: 0.25},
11 {at: 0.35},
12 {at: 0.5},
13 {at: 0.65},
14 {at: 0.75},
15 {at: 0.85},
16 {at: 1.05},
17 {at: 1.15},
18 ]
19 };
20
21 var animateRotate = {
22 keyframes: [
23 {rotate: '-10deg'},
24 {rotate: '470deg'}
25 ],
26 style: `background: maroon; margin: 5px;`,
27 samples: [
28 {at: 0},
29 {at: 0.05},
30 {at: 0.15},
31 {at: 0.25},
32 {at: 0.35},
33 {at: 0.45},
34 {at: 0.5},
35 {at: 0.55},
36 {at: 0.65},
37 {at: 0.75},
38 {at: 0.85},
39 {at: 0.95},
40 {at: 1.05},
41 {at: 1.15},
42 ]
43 };
44
45 var animateScale = {
46 keyframes: [
47 {scale: '0.1'},
48 {scale: '1'}
49 ],
50 style: `background: peru; margin: 5px;`,
51 markerStyle: '', // No marker. This mustn't affect cc/blink consistency, crbug .com/531290
52 samples: [
53 {at: 0},
54 {at: 0.05},
55 {at: 0.15},
56 {at: 0.25},
57 {at: 0.35},
58 {at: 0.45},
59 {at: 0.5},
60 {at: 0.55},
61 {at: 0.65},
62 {at: 0.75},
63 {at: 0.85},
64 {at: 0.95},
65 {at: 1.05},
66 {at: 1.15},
67 ]
68 };
69
70 var translateRotateScaleTests = [animateTranslate, animateRotate, animateScale];
71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698