3 <p>Clicking the green rectangle should attempt a navigation to the fragment identifier.
</p>
4 <svg width=
"300" height=
"200" onload=
"runTest()">
6 <rect width=
"100" height=
"100" fill=
"green"/>
11 if (window
.testRunner
) {
12 testRunner
.waitUntilDone();
13 testRunner
.dumpAsText();
17 var evt
= document
.createEvent("MouseEvents");
18 evt
.initMouseEvent("click", true, true, window
,
19 0, 0, 0, 0, 0, false, false, false, false, 0, null);
20 document
.querySelector('a').dispatchEvent(evt
);
21 window
.setTimeout(function checkNavigation() {
22 var result
= location
.hash
=== '#test' ? 'PASS' : 'FAIL';
23 document
.documentElement
.appendChild(document
.createTextNode(result
));
24 if (window
.testRunner
)
25 testRunner
.notifyDone();