summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/loader/unload-hyperlink.html
blob: d767392dd53c73bd69f72447b5128103fadb2d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script>
addEventListener("unload", function() {
  var anc = document.getElementById("lk");
  var evt = document.createEvent("MouseEvents");
  evt.initMouseEvent(
      "click", true, true, window, 1, 0, 0, 0, 0,
      false, false, false, false, 0, anc);
  anc.dispatchEvent(evt);
}, false);
</script>
<a id="lk" href="resources/fail-and-notify-done.html">Link to failure.</a>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}
window.location = "resources/pass-and-notify-done.html";
</script>