chromium/third_party/blink/web_tests/http/tests/security/cookies/assign-document-url.html

<html>
<body>
<pre>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

document.cookie = "secret=PASS";
document.write(document.URL + "\n");
document.URL = "http://localhost:8000/";
// Should match previous line.
document.write(document.URL + "\n");
document.write(document.cookie + "\n");
</script>
</pre>
</body>
</html>