Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!-- Parent page --> | 1 <!-- Parent page --> |
| 2 <script> | 2 <script> |
| 3 function clickLink() { | 3 function clickLink() { |
| 4 // Simulate a mouse click on a link targeting the child frame. | 4 // Simulate a mouse click on a link targeting the child frame. |
| 5 var evt = document.createEvent("MouseEvents"); | 5 var evt = document.createEvent("MouseEvents"); |
| 6 evt.initMouseEvent("click", true, true, window, | 6 evt.initMouseEvent("click", true, true, window, |
| 7 0, 0, 0, 0, 0, false, false, false, false, 0, null); | 7 0, 0, 0, 0, 0, false, false, false, false, 0, null); |
| 8 document.getElementById("link").dispatchEvent(evt); | 8 document.getElementById("link").dispatchEvent(evt); |
| 9 } | 9 } |
| 10 </script> | 10 </script> |
| 11 <!-- Child iframe --> | 11 <!-- Child iframe --> |
| 12 <iframe name="frame1" src="about:blank"></iframe> | 12 <iframe name="frame1" src="data:text/html,initial"></iframe> |
|
Charlie Reis
2015/06/09 07:14:18
This test (which ironically I wrote in 2011) was b
| |
| 13 <br> | 13 <br> |
| 14 <p>This test checks that the backForward list is not corrupted when a frame load is canceled. | 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="f rame1">click here</a> and then Back. Then click Forward and quickly click Stop. Ensure that Back and Forward still work. | 15 <p>If testing manually, <a id="link" href="slow-resource.pl?delay=250" target="f rame1">click here</a> and then Back. Then click Forward and quickly click Stop. Ensure that Back and Forward still work. |
| OLD | NEW |