chromium/third_party/blink/web_tests/http/tests/loading/stop-load-at-commit.html

<!DOCTYPE html>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

function abortFunc() {
  window.stop();
}

function onload() {
  var oReq = new XMLHttpRequest();
  oReq.addEventListener("abort", abortFunc);
  oReq.open("GET", "/resources/slow-script.pl");
  oReq.send();
  window.location = "/navigation/resources/pass-and-notify-done.html";
}
</script>
<body onload="onload();">
<div>Test should not end on this page</div>
</body>