2 addEventListener("unload", function() {
3 var anc
= document
.getElementById("lk");
4 var evt
= document
.createEvent("MouseEvents");
6 "click", true, true, window
, 1, 0, 0, 0, 0,
7 false, false, false, false, 0, anc
);
8 anc
.dispatchEvent(evt
);
11 <a id=
"lk" href=
"resources/fail-and-notify-done.html">Link to failure.
</a>
13 if (window
.testRunner
) {
14 testRunner
.dumpAsText();
15 testRunner
.waitUntilDone();
17 window
.location
= "resources/pass-and-notify-done.html";