2 <script src='../../resources/js-test.js'
></script>
4 <svg width=
100 height=
100>
5 <rect id=
"rect" x=
10 y=
10 width=
30 height=
30 fill=
"black">
6 <set attributeName=
"width" to=
"60" begin=
"rect.click" dur=
"5s" />
10 window
.jsTestIsAsync
= true;
11 description("SMIL animations scheduled in inactive document cause crash");
12 debug("PASS if no crash on debug builds");
14 if (!window
.eventSender
)
15 testFailed("Please run this in content_shell --run-layout-test")
17 var svg
= document
.querySelector("svg");
18 svg
.pauseAnimations();
20 setTimeout(function() {
21 eventSender
.mouseMoveTo(svg
.offsetLeft
+ 20, svg
.offsetTop
+ 20);
22 eventSender
.mouseDown();
23 eventSender
.mouseUp();