| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <div id="target">Test target</div> | 4 <div id="target">Test target</div> |
| 5 <script> | 5 <script> |
| 6 var target = document.getElementById('target'); | 6 var target = document.getElementById('target'); |
| 7 var test1 = async_test('Timing function should apply even when keyframes are not
specified'); | 7 var test1 = async_test('Timing function should apply even when keyframes are not
specified'); |
| 8 target.addEventListener('animationstart', function() { | 8 target.addEventListener('animationstart', function() { |
| 9 test1.step(function() { | 9 test1.step(function() { |
| 10 assert_equals(getComputedStyle(target).left, '1000px'); | 10 assert_equals(getComputedStyle(target).left, '1000px'); |
| 11 }); | 11 }); |
| 12 target.remove(); | 12 target.remove(); |
| 13 test1.done(); | 13 test1.done(); |
| 14 }); | 14 }); |
| 15 </script> | 15 </script> |
| 16 <style> | 16 <style> |
| 17 #target { | 17 #target { |
| 18 animation: anim 1s -0.25s step-start paused; | 18 animation: anim 1s -0.25s step-start paused; |
| 19 left: 0px; | 19 left: 0px; |
| 20 } | 20 } |
| 21 @keyframes anim { | 21 @keyframes anim { |
| 22 50% { left: 1000px; } | 22 50% { left: 1000px; } |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| OLD | NEW |