OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>pause/setCurrentTime/unpause before timeline started gives correct presen
tation time</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <svg> |
| 6 <rect width="100" height="100"> |
| 7 <animate attributeName="x" from="0" to="200" begin="2" dur="20"/> |
| 8 </rect> |
| 9 </svg> |
| 10 <script> |
| 11 async_test(function(t) { |
| 12 var target = document.querySelector('svg'); |
| 13 target.pauseAnimations(); |
| 14 target.setCurrentTime(3); |
| 15 target.unpauseAnimations(); |
| 16 window.onload = function() { |
| 17 setTimeout(t.step_func_done(function() { |
| 18 assert_greater_than_equal(target.getCurrentTime(), 3); |
| 19 }), 0); |
| 20 }; |
| 21 }); |
| 22 </script> |
OLD | NEW |