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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/perspective-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 perspective: 30px; 5 perspective: 30px;
6 } 6 }
7 .target { 7 .target {
8 display: inline-block; 8 display: inline-block;
9 margin-top: 50px; 9 margin-top: 50px;
10 margin-bottom: 25px; 10 margin-bottom: 25px;
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 </style> 27 </style>
28 <body> 28 <body>
29 <template id="target-template"> 29 <template id="target-template">
30 <div><div class="transformed"></div></div> 30 <div><div class="transformed"></div></div>
31 </template> 31 </template>
32 <script src="resources/interpolation-test.js"></script> 32 <script src="resources/interpolation-test.js"></script>
33 <script> 33 <script>
34 assertInterpolation({ 34 assertInterpolation({
35 property: 'perspective', 35 property: 'perspective',
36 from: '', 36 from: neutralKeyframe,
37 to: '20px', 37 to: '20px',
38 }, [ 38 }, [
39 {at: -20, is: 'none'}, 39 {at: -20, is: 'none'},
40 {at: -1, is: 'none'}, 40 {at: -1, is: 'none'},
41 {at: -0.3, is: '7px'}, 41 {at: -0.3, is: '7px'},
42 {at: 0, is: '10px'}, 42 {at: 0, is: '10px'},
43 {at: 0.3, is: '13px'}, 43 {at: 0.3, is: '13px'},
44 {at: 0.6, is: '16px'}, 44 {at: 0.6, is: '16px'},
45 {at: 1, is: '20px'}, 45 {at: 1, is: '20px'},
46 {at: 1.5, is: '25px'}, 46 {at: 1.5, is: '25px'},
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 {at: 1.5, is: '125px'}, 88 {at: 1.5, is: '125px'},
89 ]); 89 ]);
90 90
91 assertNoInterpolation({ 91 assertNoInterpolation({
92 property: 'perspective', 92 property: 'perspective',
93 from: '50px', 93 from: '50px',
94 to: 'none', 94 to: 'none',
95 }); 95 });
96 </script> 96 </script>
97 </body> 97 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698