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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/opacity-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 opacity: 0.8; 5 opacity: 0.8;
6 } 6 }
7 .target { 7 .target {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 background-color: black; 10 background-color: black;
11 display: inline-block; 11 display: inline-block;
12 opacity: 0.1; 12 opacity: 0.1;
13 } 13 }
14 .expected { 14 .expected {
15 background-color: green; 15 background-color: green;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 <script src="resources/interpolation-test.js"></script> 19 <script src="resources/interpolation-test.js"></script>
20 <script> 20 <script>
21 assertInterpolation({ 21 assertInterpolation({
22 property: 'opacity', 22 property: 'opacity',
23 from: '', 23 from: neutralKeyframe,
24 to: '0.2', 24 to: '0.2',
25 }, [ 25 }, [
26 {at: -0.3, is: '0.07'}, 26 {at: -0.3, is: '0.07'},
27 {at: 0, is: '0.1'}, 27 {at: 0, is: '0.1'},
28 {at: 0.3, is: '0.13'}, 28 {at: 0.3, is: '0.13'},
29 {at: 0.6, is: '0.16'}, 29 {at: 0.6, is: '0.16'},
30 {at: 1, is: '0.2'}, 30 {at: 1, is: '0.2'},
31 {at: 1.5, is: '0.25'}, 31 {at: 1.5, is: '0.25'},
32 ]); 32 ]);
33 33
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 }, [ 77 }, [
78 {at: -0.3, is: '0'}, // CSS opacity is [0-1]. 78 {at: -0.3, is: '0'}, // CSS opacity is [0-1].
79 {at: 0, is: '0'}, 79 {at: 0, is: '0'},
80 {at: 0.3, is: '0.3'}, 80 {at: 0.3, is: '0.3'},
81 {at: 0.6, is: '0.6'}, 81 {at: 0.6, is: '0.6'},
82 {at: 1, is: '1'}, 82 {at: 1, is: '1'},
83 {at: 1.5, is: '1'} 83 {at: 1.5, is: '1'}
84 ]); 84 ]);
85 </script> 85 </script>
86 </body> 86 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698