- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / misc / no-last-modified.html
1 <script>
2 if (window.testRunner)
3     testRunner.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>