| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| index b959612bdcd1d50b1806ce987139b9b7375c4425..f4b870105ca201be87e5d0c0e11970618cf44cc1 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/set-cookie.php
|
| @@ -3,7 +3,16 @@
|
| header("Cache-Control: no-store, no-cache, must-revalidate");
|
| header("Pragma: no-cache");
|
| header("Content-Type: text/plain");
|
| - setcookie("TestCookie", "TestCookieValue");
|
| -
|
| + header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
|
| + $length = isset($_GET["length"]) ? (int) $_GET["length"] : 0;
|
| + if (!$length) {
|
| + setcookie("TestCookie", "TestCookieValue");
|
| + } else {
|
| + $data = "";
|
| + for ($i = 0; $i < $length; $i++) {
|
| + $data .= "a";
|
| + }
|
| + header("Set-Cookie: $data");
|
| + }
|
| echo("Cookie set.");
|
| ?>
|
|
|