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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/rotate-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 rotate: 90deg; 5 rotate: 90deg;
6 } 6 }
7 .target { 7 .target {
8 width: 40px; 8 width: 40px;
9 height: 20px; 9 height: 20px;
10 background-color: grey; 10 background-color: grey;
11 rotate: 10deg; 11 rotate: 10deg;
12 } 12 }
13 .expected { 13 .expected {
14 background-color: green; 14 background-color: green;
15 } 15 }
16 </style> 16 </style>
17 <template id="target-template"> 17 <template id="target-template">
18 <div class="parent"> 18 <div class="parent">
19 <div class="target">Text</div> 19 <div class="target">Text</div>
20 </div> 20 </div>
21 </template> 21 </template>
22 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
23 <script> 23 <script>
24 assertInterpolation({ 24 assertInterpolation({
25 property: 'rotate', 25 property: 'rotate',
26 from: '', 26 from: neutralKeyframe,
27 to: '30deg', 27 to: '30deg',
28 }, [ 28 }, [
29 {at: -1, is: '-10deg'}, 29 {at: -1, is: '-10deg'},
30 {at: 0, is: '10deg'}, 30 {at: 0, is: '10deg'},
31 {at: 0.25, is: '15deg'}, 31 {at: 0.25, is: '15deg'},
32 {at: 0.75, is: '25deg'}, 32 {at: 0.75, is: '25deg'},
33 {at: 1, is: '30deg'}, 33 {at: 1, is: '30deg'},
34 {at: 2, is: '50deg'}, 34 {at: 2, is: '50deg'},
35 ]); 35 ]);
36 36
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 to: '0deg 0 1 0', 144 to: '0deg 0 1 0',
145 }, [ 145 }, [
146 {at: -1, is: '900deg 1 0 0'}, 146 {at: -1, is: '900deg 1 0 0'},
147 {at: 0, is: '450deg 1 0 0'}, 147 {at: 0, is: '450deg 1 0 0'},
148 {at: 0.25, is: '337.5deg 1 0 0'}, 148 {at: 0.25, is: '337.5deg 1 0 0'},
149 {at: 0.75, is: '112.5deg 1 0 0'}, 149 {at: 0.75, is: '112.5deg 1 0 0'},
150 {at: 1, is: '0deg 0 1 0'}, 150 {at: 1, is: '0deg 0 1 0'},
151 {at: 2, is: '-450deg 1 0 0'}, 151 {at: 2, is: '-450deg 1 0 0'},
152 ]); 152 ]);
153 </script> 153 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698