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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/margin-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 margin: 10px; 5 margin: 10px;
6 border: solid; 6 border: solid;
7 display: inline-block; 7 display: inline-block;
8 } 8 }
9 .target { 9 .target {
10 width: 40px; 10 width: 40px;
(...skipping 10 matching lines...) Expand all
21 <body> 21 <body>
22 <template id="target-template"> 22 <template id="target-template">
23 <div> 23 <div>
24 <div class="target"></div> 24 <div class="target"></div>
25 </div> 25 </div>
26 </template> 26 </template>
27 <script src="resources/interpolation-test.js"></script> 27 <script src="resources/interpolation-test.js"></script>
28 <script> 28 <script>
29 assertInterpolation({ 29 assertInterpolation({
30 property: 'margin', 30 property: 'margin',
31 from: '', 31 from: neutralKeyframe,
32 to: '20px', 32 to: '20px',
33 }, [ 33 }, [
34 {at: -0.3, is: '33px'}, 34 {at: -0.3, is: '33px'},
35 {at: 0, is: '30px'}, 35 {at: 0, is: '30px'},
36 {at: 0.3, is: '27px'}, 36 {at: 0.3, is: '27px'},
37 {at: 0.6, is: '24px'}, 37 {at: 0.6, is: '24px'},
38 {at: 1, is: '20px'}, 38 {at: 1, is: '20px'},
39 {at: 1.5, is: '15px'}, 39 {at: 1.5, is: '15px'},
40 ]); 40 ]);
41 41
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 }, [ 85 }, [
86 {at: -0.3, is: '-3px'}, 86 {at: -0.3, is: '-3px'},
87 {at: 0, is: '0px'}, 87 {at: 0, is: '0px'},
88 {at: 0.3, is: '3px'}, 88 {at: 0.3, is: '3px'},
89 {at: 0.6, is: '6px'}, 89 {at: 0.6, is: '6px'},
90 {at: 1, is: '10px'}, 90 {at: 1, is: '10px'},
91 {at: 1.5, is: '15px'} 91 {at: 1.5, is: '15px'}
92 ]); 92 ]);
93 </script> 93 </script>
94 </body> 94 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698