chromium/third_party/blink/web_tests/http/tests/security/cookies/third-party-cookie-blocking-user-action.html

<!DOCTYPE html>
<html>
<title>Checks that a user generated POST request does not circumvent third-party cookie rules</title>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
    testRunner.dumpChildFrames();

    // Start with a clean state, as otherwise an expired cookie for this domain could affect behavior with CFNetwork.
    // Can be removed once <rdar://problem/10080130> is fixed.
    if (testRunner.setPrivateBrowsingEnabled)
        testRunner.setPrivateBrowsingEnabled(true);

    testRunner.setBlockThirdPartyCookies(true);
}

function runTest()
{
    if (window.eventSender) {
        // Click somewhere on the button!
        var form = document.getElementById("form");
        eventSender.mouseMoveTo(form.offsetLeft + 5, form.offsetTop + 5);
        eventSender.mouseDown();
        eventSender.mouseUp();
    }
}
</script>
<body onload="runTest()">
    <div>
        <form id="form" action="http://localhost:8000/security/cookies/resources/set-a-cookie.php" method="POST" target="iframe">
          <input type="submit" />
        </form>
        <iframe src="javascript:false" name="iframe"></iframe>
    </div>
</body>
</html>