JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / http / tests / misc / no-last-modified.html
1 <script>
2 if (window.layoutTestController)
3     layoutTestController.dumpAsText();
4
5 function test(text) {
6     document.write('<iframe src="../resources/last-modified.php?date=' + escape(text) + '"></iframe>');
7 }
8
9 test('');
10
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');
18 }
19 </script>