Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / resources / forward-and-cancel-frames.html
blobded6352e28a9131e7b87db3f79ceae5f99d3d3c9
1 <!-- Parent page -->
2 <script>
3 function clickLink() {
4 // Simulate a mouse click on a link targeting the child frame.
5 var evt = document.createEvent("MouseEvents");
6 evt.initMouseEvent("click", true, true, window,
7 0, 0, 0, 0, 0, false, false, false, false, 0, null);
8 document.getElementById("link").dispatchEvent(evt);
10 </script>
11 <!-- Child iframe -->
12 <iframe name="frame1" src="data:text/html,initial"></iframe>
13 <br>
14 <p>This test checks that the backForward list is not corrupted when a frame load is canceled.
15 <p>If testing manually, <a id="link" href="slow-resource.pl?delay=250" target="frame1">click here</a> and then Back. Then click Forward and quickly click Stop. Ensure that Back and Forward still work.