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

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

<script>
if (window.testRunner) {
    testRunner.clearBackForwardList();
    testRunner.waitUntilDone();
}

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

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