Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/webfont/resources/cookie-match.php

Issue 1417943005: Fix corrupted LayoutTests/http/tests/resources/Ahem.ttf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make http tests use the fixed file Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 2
3 if (!isset($_COOKIE["key"])) { 3 if (!isset($_COOKIE["key"])) {
4 echo "FAIL: Cookie is not set"; 4 echo "FAIL: Cookie is not set";
5 exit; 5 exit;
6 } 6 }
7 7
8 if ($_GET["key"] == $_COOKIE["key"]) { 8 if ($_GET["key"] == $_COOKIE["key"]) {
9 $fp = fopen("../../../../resources/Ahem.ttf", "rb"); 9 $fp = fopen("../../resources/Ahem.ttf", "rb");
10 header("Content-type: application/octet-stream"); 10 header("Content-type: application/octet-stream");
11 header("HTTP/1.0 200 OK"); 11 header("HTTP/1.0 200 OK");
12 fpassthru($fp); 12 fpassthru($fp);
13 } else { 13 } else {
14 echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}"; 14 echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}";
15 exit; 15 exit;
16 } 16 }
17 17
18 ?> 18 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698