OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Tests that animation works, if changing begin to contain an event-base tr
igger.</title> |
| 3 <script src=../../resources/testharness.js></script> |
| 4 <script src=../../resources/testharnessreport.js></script> |
| 5 <svg> |
| 6 <rect id="rect" width="100" height="100"> |
| 7 <set id="anim" |
| 8 begin="indefinite" |
| 9 dur="0.05s" |
| 10 attributeName="width" |
| 11 to="50" |
| 12 fill="freeze"/> |
| 13 </rect> |
| 14 </svg> |
| 15 <script> |
| 16 var anim = document.getElementById("anim"); |
| 17 var t = async_test(document.title); |
| 18 anim.onbegin = t.step_func(function() { |
| 19 assert_equals(document.getElementById("rect").getAttribute("width"), "50"
); |
| 20 t.done(); |
| 21 }); |
| 22 |
| 23 anim.setAttribute("begin","rect.click"); |
| 24 if (window.eventSender) { |
| 25 eventSender.mouseMoveTo(50, 50); |
| 26 eventSender.mouseDown(); |
| 27 eventSender.mouseUp(); |
| 28 } |
| 29 </script> |
OLD | NEW |