Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / resources / last-modified.php
blob6465f77cd6133177b723e53ed6f3aa057d343161
1 <?php
2 $date = $_GET['date'];
3 $expected = $_GET['expected'];
4 header("Last-Modified: $date");
5 ?>
6 <script>
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);
14 </script>