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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/w3c/webperf/resources/redirect-opt-in.php

Issue 2624553002: Move nav timing 2's wpt tests into w3c/webperf/approved directory (Closed)
Patch Set: got rid of non-test file Created 3 years, 11 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: third_party/WebKit/LayoutTests/http/tests/w3c/webperf/resources/redirect-opt-in.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/w3c/webperf/resources/redirect-opt-in.php b/third_party/WebKit/LayoutTests/http/tests/w3c/webperf/resources/redirect-opt-in.php
new file mode 100644
index 0000000000000000000000000000000000000000..2b75da0ad542142964c131b29cd8c3fee4524076
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/w3c/webperf/resources/redirect-opt-in.php
@@ -0,0 +1,9 @@
+<?php
+ $code = ctype_digit($_GET["code"]) ? $_GET["code"] : "302";
+ $location = $_GET["location"] ? $_GET["location"] : $_SERVER["SCRIPT_NAME"] . "?followed";
+
+ header("HTTP/1.1 $code");
+ header("Location: $location");
+ header("Timing-Allow-Origin: *");
+ exit;
+?>

Powered by Google App Engine
This is Rietveld 408576698