| Index: LayoutTests/http/tests/webfont/resources/cookie-match.php
|
| diff --git a/LayoutTests/http/tests/webfont/resources/cookie-match.php b/LayoutTests/http/tests/webfont/resources/cookie-match.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fb9b3153af738dd33268480037bd7da58ab2c669
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/webfont/resources/cookie-match.php
|
| @@ -0,0 +1,18 @@
|
| +<?php
|
| +
|
| +if (!isset($_COOKIE["key"])) {
|
| + echo "FAIL: Cookie is not set";
|
| + exit;
|
| +}
|
| +
|
| +if ($_GET["key"] == $_COOKIE["key"]) {
|
| + $fp = fopen("../../../../resources/Ahem.ttf", "rb");
|
| + header("Content-type: application/octet-stream");
|
| + header("HTTP/1.0 200 OK");
|
| + fpassthru($fp);
|
| +} else {
|
| + echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}";
|
| + exit;
|
| +}
|
| +
|
| +?>
|
|
|