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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/left-zoomed-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 .container { 4 .container {
5 left: -10px; 5 left: -10px;
6 } 6 }
7 .target { 7 .target {
8 position: relative; 8 position: relative;
9 width: 10px; 9 width: 10px;
10 height: 10px; 10 height: 10px;
(...skipping 13 matching lines...) Expand all
24 </template> 24 </template>
25 <script src="resources/interpolation-test.js"></script> 25 <script src="resources/interpolation-test.js"></script>
26 <script> 26 <script>
27 // When viewing this test manually you will need to pass --expose-internals-for- testing to content_shell. 27 // When viewing this test manually you will need to pass --expose-internals-for- testing to content_shell.
28 if (window.internals) { 28 if (window.internals) {
29 internals.setZoomFactor(2); 29 internals.setZoomFactor(2);
30 } 30 }
31 31
32 assertInterpolation({ 32 assertInterpolation({
33 property: 'left', 33 property: 'left',
34 from: '', 34 from: neutralKeyframe,
35 to: '10px', 35 to: '10px',
36 method: 'CSS Animations', 36 method: 'CSS Animations',
37 }, [ 37 }, [
38 {at: -0.5, is: '25px'}, 38 {at: -0.5, is: '25px'},
39 {at: 0, is: '20px'}, 39 {at: 0, is: '20px'},
40 {at: 0.5, is: '15px'}, 40 {at: 0.5, is: '15px'},
41 {at: 1, is: '10px'}, 41 {at: 1, is: '10px'},
42 {at: 1.5, is: '5px'}, 42 {at: 1.5, is: '5px'},
43 ]); 43 ]);
44 44
45 assertInterpolation({ 45 assertInterpolation({
46 property: 'left', 46 property: 'left',
47 from: 'inherit', 47 from: 'inherit',
48 to: '10px', 48 to: '10px',
49 }, [ 49 }, [
50 {at: -0.5, is: '-20px'}, 50 {at: -0.5, is: '-20px'},
51 {at: 0, is: '-10px'}, 51 {at: 0, is: '-10px'},
52 {at: 0.5, is: '0px'}, 52 {at: 0.5, is: '0px'},
53 {at: 1, is: '10px'}, 53 {at: 1, is: '10px'},
54 {at: 1.5, is: '20px'}, 54 {at: 1.5, is: '20px'},
55 ]); 55 ]);
56 </script> 56 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698