chromium/third_party/blink/web_tests/http/tests/security/resources/sandboxed-iframe-document-cookie-read-denied.html

<html>
<head>
<script>

function runTest()
{
    document.getElementById("testResult").innerHTML = (function() {
        try {
            var cookie = document.cookie;
        }
        catch (err) {
            if (err.name.indexOf("SecurityError") != -1)
                return "PASS";
        }

        return "FAIL: SecurityError not raised";
    })();
}

</script>
</head>
<body onload="runTest();">
    <p id="testResult">FAIL: Script didn't run</p>
</body>
</html>