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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/script-with-constant-last-modified.php

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)
Patch Set: add tests Created 4 years, 2 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/inspector/resource-tree/resources/script-with-constant-last-modified.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/random-script.php b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/script-with-constant-last-modified.php
similarity index 75%
copy from third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/random-script.php
copy to third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/script-with-constant-last-modified.php
index 14fc32dd800d0c3c1aed66a779ee87dc4f420f9b..de902baf0ab78b8ce109010bd340d2370149259b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/random-script.php
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/script-with-constant-last-modified.php
@@ -6,14 +6,14 @@
$max_age = 12 * 31 * 24 * 60 * 60; //one year
$expires = gmdate(DATE_RFC1123, time() + $max_age);
- $last_modified = gmdate(DATE_RFC1123, time() - $max_age);
+ // Dec 01, 1989, 8:00:00AM.
+ $last_modified = gmdate(DATE_RFC1123, 628502400);
header("Cache-Control: public, max-age=" . 5*$max_age);
header("Cache-control: max-age=0");
header("Expires: " . $expires);
- header("Content-Type: text/html");
+ header("Content-Type: text/javascript");
header("Last-Modified: " . $last_modified);
echo("console.log(\"Done.\");");
- echo("var randomValue = " . rand() . ";");
?>

Powered by Google App Engine
This is Rietveld 408576698