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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/clip-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 <body> 2 <body>
3 <style> 3 <style>
4 .container { 4 .container {
5 width: 80px; 5 width: 80px;
6 height: 80px; 6 height: 80px;
7 background: black; 7 background: black;
8 display: inline-block; 8 display: inline-block;
9 padding: 5px; 9 padding: 5px;
10 } 10 }
(...skipping 12 matching lines...) Expand all
23 clip: rect(0px, 100px, 0px, 100px); 23 clip: rect(0px, 100px, 0px, 100px);
24 } 24 }
25 </style> 25 </style>
26 <template id="target-template"> 26 <template id="target-template">
27 <div class="container"><div class="target"></div></div> 27 <div class="container"><div class="target"></div></div>
28 </template> 28 </template>
29 <script src="resources/interpolation-test.js"></script> 29 <script src="resources/interpolation-test.js"></script>
30 <script> 30 <script>
31 assertInterpolation({ 31 assertInterpolation({
32 property: 'clip', 32 property: 'clip',
33 from: '', 33 from: neutralKeyframe,
34 to: 'rect(20px, 20px, 20px, 20px)', 34 to: 'rect(20px, 20px, 20px, 20px)',
35 }, [ 35 }, [
36 {at: -1, is: 'rect(-20px 180px -20px 180px)'}, 36 {at: -1, is: 'rect(-20px 180px -20px 180px)'},
37 {at: 0, is: 'rect(0px 100px 0px 100px)'}, 37 {at: 0, is: 'rect(0px 100px 0px 100px)'},
38 {at: 0.25, is: 'rect(5px 80px 5px 80px)'}, 38 {at: 0.25, is: 'rect(5px 80px 5px 80px)'},
39 {at: 0.75, is: 'rect(15px 40px 15px 40px)'}, 39 {at: 0.75, is: 'rect(15px 40px 15px 40px)'},
40 {at: 1, is: 'rect(20px 20px 20px 20px)'}, 40 {at: 1, is: 'rect(20px 20px 20px 20px)'},
41 {at: 2, is: 'rect(40px -60px 40px -60px)'}, 41 {at: 2, is: 'rect(40px -60px 40px -60px)'},
42 ]); 42 ]);
43 43
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 from: 'auto', 96 from: 'auto',
97 to: 'rect(0px, 50px, 50px, 0px)' 97 to: 'rect(0px, 50px, 50px, 0px)'
98 }); 98 });
99 99
100 assertNoInterpolation({ 100 assertNoInterpolation({
101 property: 'clip', 101 property: 'clip',
102 from: 'rect(0px, 50px, 50px, 0px)', 102 from: 'rect(0px, 50px, 50px, 0px)',
103 to: 'auto' 103 to: 'auto'
104 }); 104 });
105 </script> 105 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698