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..114789c325bc5e6535798841378fcec15f7873f1 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'); |
tkent
2014/07/22 00:48:41
We had better show |expected| and |lastModified|.
kangil_
2014/07/23 06:35:53
Done.
|
+} |
</script> |