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

Side by Side Diff: LayoutTests/animations/responsive/left-responsive.html

Issue 1181253006: Add test for style responsive animation behaviour (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <script src="resources/responsive-test.js"></script>
3 <script>
4 assertResponsive({
5 property: 'left',
6 from: 'inherit',
7 to: '100px',
8 configurations: [{
9 state: {parentStyle: {left: '0px'}},
10 expect: [
11 {at: 0.25, is: '25px'},
12 {at: 0.75, is: '75px'},
13 ],
14 }, {
15 state: {parentStyle: {left: 'auto'}},
16 expect: [
17 {at: 0.25, is: 'auto'},
18 {at: 0.75, is: '100px'},
19 ],
20 }],
21 });
22
23 assertResponsive({
24 property: 'left',
25 from: '',
26 to: '100px',
27 configurations: [{
28 state: {targetStyle: {left: '0px'}},
29 expect: [
30 {at: 0.25, is: '25px'},
31 {at: 0.75, is: '75px'},
32 ],
33 }, {
34 state: {targetStyle: {left: 'auto'}},
35 expect: [
36 {at: 0.25, is: 'auto'},
37 {at: 0.75, is: '100px'},
38 ],
39 }, {
40 state: {targetStyle: {left: 'inherit'}, parentStyle: {left: '0px'}},
41 expect: [
42 {at: 0.25, is: '25px'},
43 {at: 0.75, is: '75px'},
44 ],
45 }, {
46 state: {targetStyle: {left: 'inherit'}, parentStyle: {left: 'auto'}},
47 expect: [
48 {at: 0.25, is: 'auto'},
49 {at: 0.75, is: '100px'},
50 ],
51 }],
52 });
53 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698