| <html> |
| <head> |
| <script src="resources/document-location.js"></script> |
| <script> |
| function runTest() { |
| // Simulate mousing over the Navigate button. |
| var button = document.getElementById("navigate"); |
| var x = button.offsetLeft + button.offsetWidth / 2; |
| var y = button.offsetTop + button.offsetHeight / 2; |
| eventSender.mouseMoveTo(x, y); |
| eventSender.mouseMoveTo(0, 0); |
| } |
| </script> |
| </head> |
| <body onload="start()"> |
| This tests that assigning to document.location from a button click adds a |
| back/forward item. |
| <button onmouseover="setLocation()" id="navigate">Navigate</button> |
| </body> |
| </html> |