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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/flex-shrink-interpolation.html

Issue 1881333002: Use neutralKeyframe sentinal instead of '' for interpolation-test.js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix composition test code Created 4 years, 8 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 flex-shrink: 3; 5 flex-shrink: 3;
6 } 6 }
7 .target { 7 .target {
8 flex-shrink: 1.5; 8 flex-shrink: 1.5;
9 } 9 }
10 </style> 10 </style>
11 <body> 11 <body>
12 <script src="resources/interpolation-test.js"></script> 12 <script src="resources/interpolation-test.js"></script>
13 <script> 13 <script>
14 assertInterpolation({ 14 assertInterpolation({
15 property: 'flex-shrink', 15 property: 'flex-shrink',
16 from: '', 16 from: neutralKeyframe,
17 to: '2', 17 to: '2',
18 }, [ 18 }, [
19 {at: -0.3, is: '1.35'}, 19 {at: -0.3, is: '1.35'},
20 {at: 0, is: '1.5'}, 20 {at: 0, is: '1.5'},
21 {at: 0.3, is: '1.65'}, 21 {at: 0.3, is: '1.65'},
22 {at: 0.6, is: '1.8'}, 22 {at: 0.6, is: '1.8'},
23 {at: 1, is: '2'}, 23 {at: 1, is: '2'},
24 {at: 1.5, is: '2.25'}, 24 {at: 1.5, is: '2.25'},
25 ]); 25 ]);
26 26
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 {at: -5, is: '0'}, 85 {at: -5, is: '0'},
86 {at: -0.3, is: '0'}, 86 {at: -0.3, is: '0'},
87 {at: 0, is: '0'}, 87 {at: 0, is: '0'},
88 {at: 0.3, is: '0.3'}, 88 {at: 0.3, is: '0.3'},
89 {at: 0.6, is: '0.6'}, 89 {at: 0.6, is: '0.6'},
90 {at: 1, is: '1'}, 90 {at: 1, is: '1'},
91 {at: 1.5, is: '1.5'}, 91 {at: 1.5, is: '1.5'},
92 ]); 92 ]);
93 </script> 93 </script>
94 </body> 94 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698