OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>getComputedStyle tests</title> | 3 <title>getComputedStyle tests</title> |
4 <link rel="help" href="http://w3c.github.io/web-animations/#animationeffecttimin
g"> | 4 <link rel="help" href="http://w3c.github.io/web-animations/#animationeffecttimin
g"> |
5 <link rel="author" title="Ryo Motozawa" href="mailto:motozawa@mozilla-japan.org"
> | 5 <link rel="author" title="Ryo Motozawa" href="mailto:motozawa@mozilla-japan.org"
> |
6 <script src="/resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
7 <script src="/resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
8 <script src="../../testcommon.js"></script> | 8 <script src="../../testcommon.js"></script> |
9 <body> | 9 <body> |
10 <div id="log"></div> | 10 <div id="log"></div> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 { fill: 'backwards', | 159 { fill: 'backwards', |
160 duration: 10000, | 160 duration: 10000, |
161 direction: 'normal' }); | 161 direction: 'normal' }); |
162 | 162 |
163 // test for a flip of value at the currentTime = 0 | 163 // test for a flip of value at the currentTime = 0 |
164 anim.effect.timing.direction = 'reverse'; | 164 anim.effect.timing.direction = 'reverse'; |
165 | 165 |
166 assert_equals(getComputedStyle(div).opacity, '1', | 166 assert_equals(getComputedStyle(div).opacity, '1', |
167 'change direction from "normal" to "reverse" ' + | 167 'change direction from "normal" to "reverse" ' + |
168 'at the starting point'); | 168 'at the starting point'); |
169 }, 'change direction from "normal" to "reverse"'); | 169 }, 'change direction from "normal" to "reverse" when currentTime is 0'); |
170 | 170 |
171 </script> | 171 </script> |
172 </body> | 172 </body> |
OLD | NEW |