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

Unified Diff: LayoutTests/http/tests/cache/resources/x-frame-options.php

Issue 216553010: Remove carriage returns from LayoutTests (04) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/cache/resources/x-frame-options.php
diff --git a/LayoutTests/http/tests/cache/resources/x-frame-options.php b/LayoutTests/http/tests/cache/resources/x-frame-options.php
index 82a8ddc7f20a19d2e97aa244b23ab3790b20ab76..3a119626e88ba3b57df15877c84de8eee02a96de 100644
--- a/LayoutTests/http/tests/cache/resources/x-frame-options.php
+++ b/LayoutTests/http/tests/cache/resources/x-frame-options.php
@@ -1,26 +1,26 @@
-<?php
-require_once '../../resources/portabilityLayer.php';
-
-clearstatcache();
-
-if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
- header("HTTP/1.0 304 Not Modified");
- exit();
-}
-$one_year = 12 * 31 * 24 * 60 * 60;
-$last_modified = gmdate(DATE_RFC1123, time() - $one_year);
-$expires = gmdate(DATE_RFC1123, time() + $one_year);
+<?php
+require_once '../../resources/portabilityLayer.php';
-
-header('Cache-Control: no-cache, max-age=' . $one_year);
-header('Expires: ' . $expires);
-header('Content-Type: text/html');
-header('Etag: 123456789');
-header('Last-Modified: ' . $last_modified);
+clearstatcache();
+
+if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
+ header("HTTP/1.0 304 Not Modified");
+ exit();
+}
+$one_year = 12 * 31 * 24 * 60 * 60;
+$last_modified = gmdate(DATE_RFC1123, time() - $one_year);
+$expires = gmdate(DATE_RFC1123, time() + $one_year);
+
+
+header('Cache-Control: no-cache, max-age=' . $one_year);
+header('Expires: ' . $expires);
+header('Content-Type: text/html');
+header('Etag: 123456789');
+header('Last-Modified: ' . $last_modified);
header('X-FRAME-OPTIONS: ALLOWALL');
echo "<body><script>\n";
echo "window.onload = function() { window.parent.test(); }\n";
echo "</script></body>\n";
-
-?>
+
+?>
« no previous file with comments | « LayoutTests/http/tests/cache/resources/stylesheet304.php ('k') | LayoutTests/http/tests/cookies/resources/setArraycookies.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698