| OLD | NEW |
| 1 <script src="../resources/testharness.js"></script> | 1 <script src="../resources/testharness.js"></script> |
| 2 <script src="../resources/testharnessreport.js"></script> | 2 <script src="../resources/testharnessreport.js"></script> |
| 3 <div id="target"></div> | 3 <div id="target"></div> |
| 4 <script> | 4 <script> |
| 5 test(function() { | 5 test(function() { |
| 6 var animation = target.animate([{motionOffset: '-1%'}, {motionOffset: '1%'}],
1); | 6 var animation = target.animate([{offsetDistance: '-1%'}, {offsetDistance: '1%'
}], 1); |
| 7 animation.pause(); | 7 animation.pause(); |
| 8 animation.currentTime = 0.5; | 8 animation.currentTime = 0.5; |
| 9 assert_equals(getComputedStyle(target).motionOffset, '0%'); | 9 assert_equals(getComputedStyle(target).offsetDistance, '0%'); |
| 10 }); | 10 }); |
| 11 </script> | 11 </script> |
| OLD | NEW |