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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 $date = $_GET['date']; 2 $date = $_GET['date'];
3 $expected = $_GET['expected'];
3 header("Last-Modified: $date"); 4 header("Last-Modified: $date");
4 ?> 5 ?>
5 <script> 6 <script>
6 document.write(document.lastModified); 7 var expected = '<?=$expected?>';
8 var lastModified = document.lastModified;
9 if (expected == lastModified) {
10 document.write('PASS');
11 } else {
12 document.write('FAIL: expect ' + expected + ', but got ' + lastModified);
13 }
7 </script> 14 </script>
OLDNEW
« 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