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

Unified Diff: LayoutTests/http/tests/resources/last-modified.php

Issue 394903004: document.lastModified should consider user's local time zone (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and take review comments into consideration Created 6 years, 5 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/resources/last-modified.php
diff --git a/LayoutTests/http/tests/resources/last-modified.php b/LayoutTests/http/tests/resources/last-modified.php
index 55c52220de5e06af50c4e8e46e48a66d7f9b3a19..6465f77cd6133177b723e53ed6f3aa057d343161 100644
--- a/LayoutTests/http/tests/resources/last-modified.php
+++ b/LayoutTests/http/tests/resources/last-modified.php
@@ -1,7 +1,14 @@
<?php
$date = $_GET['date'];
+ $expected = $_GET['expected'];
header("Last-Modified: $date");
?>
<script>
-document.write(document.lastModified);
+var expected = '<?=$expected?>';
+var lastModified = document.lastModified;
+if (expected == lastModified) {
+ document.write('PASS');
+} else {
+ document.write('FAIL: expect ' + expected + ', but got ' + lastModified);
+}
</script>
« no previous file with comments | « LayoutTests/http/tests/misc/no-last-modified.html ('k') | LayoutTests/http/tests/resources/no-last-modified.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698