| Index: LayoutTests/svg/animations/animation-begin-change-js.html
|
| diff --git a/LayoutTests/svg/animations/animation-begin-change-js.html b/LayoutTests/svg/animations/animation-begin-change-js.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..397580205570bbbab180c70605ca14761e6a59cb
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/animations/animation-begin-change-js.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +<title>Tests that animation works, if changing begin to contain an event-base trigger.</title>
|
| +<script src=../../resources/testharness.js></script>
|
| +<script src=../../resources/testharnessreport.js></script>
|
| +<svg>
|
| + <rect id="rect" width="100" height="100">
|
| + <set id="anim"
|
| + begin="indefinite"
|
| + dur="0.05s"
|
| + attributeName="width"
|
| + to="50"
|
| + fill="freeze"/>
|
| + </rect>
|
| +</svg>
|
| +<script>
|
| + var anim = document.getElementById("anim");
|
| + var t = async_test(document.title);
|
| + anim.onbegin = t.step_func(function() {
|
| + assert_equals(document.getElementById("rect").getAttribute("width"), "50");
|
| + t.done();
|
| + });
|
| +
|
| + anim.setAttribute("begin","rect.click");
|
| + if (window.eventSender) {
|
| + eventSender.mouseMoveTo(50, 50);
|
| + eventSender.mouseDown();
|
| + eventSender.mouseUp();
|
| + }
|
| +</script>
|
|
|