chromium/third_party/blink/web_tests/http/tests/security/cookies/base-about-blank.html

<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    testRunner.setDumpConsoleMessages(false);
}

document.cookie = "secret=PASS";

function log(msg) {
    var line = document.createElement("div");
    line.appendChild(document.createTextNode(msg));
    document.getElementById("console").appendChild(line);
}

function runTest() {
    log("Running test.");
    frames[1].document.open();
    log(frames[1].document.cookie);
    frames[1].document.close();
    log("Test complete.");

    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
<base href="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
</head>
<body>
<iframe
  onload="setTimeout(runTest, 0)"
  src="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
</iframe>
<iframe></iframe>
<div id="console"></div>
</body>
</html>