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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/width-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 width: 100px; 5 width: 100px;
6 overflow: visible; 6 overflow: visible;
7 } 7 }
8 .target { 8 .target {
9 background-color: black; 9 background-color: black;
10 width: 10px; 10 width: 10px;
11 height: 10px; 11 height: 10px;
12 } 12 }
13 .expected { 13 .expected {
14 background-color: green; 14 background-color: green;
15 } 15 }
16 </style> 16 </style>
17 <body> 17 <body>
18 <template id="target-template"> 18 <template id="target-template">
19 <div class="container"> 19 <div class="container">
20 <div class="target"></div> 20 <div class="target"></div>
21 </div> 21 </div>
22 </template> 22 </template>
23 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
24 <script> 24 <script>
25 assertInterpolation({ 25 assertInterpolation({
26 property: 'width', 26 property: 'width',
27 from: '', 27 from: neutralKeyframe,
28 to: '40px', 28 to: '40px',
29 }, [ 29 }, [
30 {at: -0.3, is: '1px'}, 30 {at: -0.3, is: '1px'},
31 {at: 0, is: '10px'}, 31 {at: 0, is: '10px'},
32 {at: 0.3, is: '19px'}, 32 {at: 0.3, is: '19px'},
33 {at: 0.6, is: '28px'}, 33 {at: 0.6, is: '28px'},
34 {at: 1, is: '40px'}, 34 {at: 1, is: '40px'},
35 {at: 1.5, is: '55px'}, 35 {at: 1.5, is: '55px'},
36 ]); 36 ]);
37 37
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 }, [ 80 }, [
81 {at: -0.3, is: '0px'}, // CSS width can't be negative. 81 {at: -0.3, is: '0px'}, // CSS width can't be negative.
82 {at: 0, is: '10px'}, 82 {at: 0, is: '10px'},
83 {at: 0.3, is: '37px'}, 83 {at: 0.3, is: '37px'},
84 {at: 0.6, is: '64px'}, 84 {at: 0.6, is: '64px'},
85 {at: 1, is: '100px'}, 85 {at: 1, is: '100px'},
86 {at: 1.5, is: '145px'} 86 {at: 1.5, is: '145px'}
87 ]); 87 ]);
88 </script> 88 </script>
89 </body> 89 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698