chromium/third_party/blink/web_tests/http/tests/cookies/http-get-cookie-set-in-js.html

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="resources/cookies-test-style.css">
<script src="resources/cookies-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description(
'Test that a cookie set using JavaScript can be correctly read by HTTP server'
);

clearAllCookies();

document.cookie = "name=value;Max-Age=1000";

debug('checking that the cookie set in javascript can be read by HTTP server');
testCookies("name=value");

clearCookies();

successfullyParsed = true;
</script>
<script src="resources/cookies-test-post.js"></script>
</body>
</html>