blob: e59db1f93859baedddb0ef3f924c1aafd1731b4a [file] [edit]
<html>
<head>
<script src="resources/document-location.js"></script>
<script>
async 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;
await eventSender.asyncMouseMoveTo(x, y);
await eventSender.asyncMouseMoveTo(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>