2 <!-- Test for WK84657 - Test passes if the SVG animation does not crash and "PASS" is printed. -->
7 var useRectElement
= document
.getElementById('useRect');
8 useRectElement
.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#rect");
10 function startTest() {
11 if (window
.testRunner
) {
12 testRunner
.waitUntilDone();
13 testRunner
.dumpAsText();
15 var svgElement
= document
.getElementById('svg');
16 window
.setTimeout(function() {
18 window
.setTimeout(function() {
19 svgElement
.setCurrentTime(100);
20 document
.write("PASS");
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
23 }, 20); // This needs to be at least 20 to ensure an animation cycle runs.
28 <body onload=
"startTest()">
29 <svg id=
"svg" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
31 <rect id=
"rect" x=
"100px" y=
"100px" width=
"100px" height=
"100px" fill=
"green">
32 <animate attributeName=
"x" from=
"100" to=
"0" begin=
"0s" dur=
"5s" repeatCount=
"1"/>
35 <use x=
"100px" y=
"100px" xlink:
href=
"#rect"/>
36 <use id=
"useRect" x=
"100px" y=
"200px"/>