Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / no-last-modified.html
blob43aa8feb16f436fc567d5b24cbc7f3b8ea0e04f3
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 function test(text) {
6 document.write('<iframe src="../resources/no-last-modified.php?date=' + escape(text) + '"></iframe>');
9 test('');
11 window.onload = function() {
12 var lastModified = Date.parse(frames[0].document.body.textContent);
13 var now = new Date();
14 if (lastModified > now - (24+1)*60*60*1000)
15 alert('PASS');
16 else
17 alert('FAIL');
19 </script>