chromium/third_party/blink/web_tests/fast/loader/document-write-after-location-change.html

<body>
<script>
if (window.testRunner)
  testRunner.dumpAsText();
location.replace("resources/pass-and-notify-done.html");
document.open();
document.write("This should not cancel the navigation");
</script>
</body>