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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/bottom-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 bottom: 30px; 5 bottom: 30px;
6 } 6 }
7 .target { 7 .target {
8 position: relative; 8 position: relative;
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
11 background-color: black; 11 background-color: black;
12 display: inline-block; 12 display: inline-block;
13 margin: 20px 5px 20px 0px; 13 margin: 20px 5px 20px 0px;
14 bottom: 10px; 14 bottom: 10px;
15 } 15 }
16 .expected { 16 .expected {
17 background-color: green; 17 background-color: green;
18 } 18 }
19 </style> 19 </style>
20 <body> 20 <body>
21 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
22 <script> 22 <script>
23 assertInterpolation({ 23 assertInterpolation({
24 property: 'bottom', 24 property: 'bottom',
25 from: '', 25 from: neutralKeyframe,
26 to: '20px', 26 to: '20px',
27 }, [ 27 }, [
28 {at: -0.3, is: '7px'}, 28 {at: -0.3, is: '7px'},
29 {at: 0, is: '10px'}, 29 {at: 0, is: '10px'},
30 {at: 0.5, is: '15px'}, 30 {at: 0.5, is: '15px'},
31 {at: 1, is: '20px'}, 31 {at: 1, is: '20px'},
32 {at: 1.5, is: '25px'}, 32 {at: 1.5, is: '25px'},
33 ]); 33 ]);
34 34
35 assertNoInterpolation({ 35 assertNoInterpolation({
(...skipping 26 matching lines...) Expand all
62 to: '10px' 62 to: '10px'
63 }, [ 63 }, [
64 {at: -0.3, is: '-16px'}, 64 {at: -0.3, is: '-16px'},
65 {at: 0, is: '-10px'}, 65 {at: 0, is: '-10px'},
66 {at: 0.5, is: '0px'}, 66 {at: 0.5, is: '0px'},
67 {at: 1, is: '10px'}, 67 {at: 1, is: '10px'},
68 {at: 1.5, is: '20px'} 68 {at: 1.5, is: '20px'}
69 ]); 69 ]);
70 </script> 70 </script>
71 </body> 71 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698