chromium/third_party/blink/web_tests/http/tests/history/redirect-js-location-after-load.html

<html>
<head>
<title>JavaScript Redirect</title>

<script>
if (window.testRunner) {
    testRunner.clearBackForwardList();
    testRunner.waitUntilDone();
}
window.onload = function() {
  setTimeout(function () {
    location = "resources/redirect-target.html#2";
  }, 0);
}
</script>
</head>

<body>
  This page modifies location after the load event.
  It must create a new history entry.
</body>
</html>