blob: 203717202d8f34d1e2fda1ee4a45534427e4e36f [file] [log] [blame]
<html>
<head>
<script src="resources/document-location.js"></script>
<script>
function runTest() {
// Simulate clicking 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.mouseDown();
eventSender.mouseUp();
}
</script>
</head>
<body onload="start()">
This tests that assigning to document.location from a button click adds a
back/forward item.
<button onclick="setLocation()" id="navigate">Navigate</button>
</body>
</html>