| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var anim1 = document.body.animate([], 100000); |
| 7 var anim2 = document.body.animate([], 100000); |
| 8 var anim3 = document.body.animate([], 100000); |
| 9 |
| 10 var noFinish = async_test('Animation finish event should not fire when cancelled
'); |
| 11 |
| 12 anim1.onfinish = function() { |
| 13 noFinish.step(function() { |
| 14 anim3.finish(); |
| 15 }); |
| 16 }; |
| 17 |
| 18 anim2.onfinish = function() { |
| 19 noFinish.step(function() { |
| 20 assert_true(false); |
| 21 }); |
| 22 }; |
| 23 |
| 24 anim3.onfinish = function() { |
| 25 noFinish.done(); |
| 26 }; |
| 27 |
| 28 anim1.finish(); |
| 29 anim2.cancel(); |
| 30 </script> |
| OLD | NEW |