tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

document-lastModified.html (818B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>document.lastModified</title>
      4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
      5 <link rel=help href="https://html.spec.whatwg.org/multipage/#resource-metadata-management">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <div id="log"></div>
      9 <script>
     10  test(function(){
     11    var date = new Date("Thu, 01 Jan 1970 01:23:45 GMT");
     12    var result = ('0' + (date.getMonth()+1)).slice(-2) + '/' + ('0' + date.getDate()).slice(-2) + '/' + date.getFullYear() + " " + [date.getHours(),date.getMinutes(),date.getSeconds()].map(function(n){return ("0" + n).slice(-2);}).join(":");
     13    assert_equals(document.lastModified, result);
     14  }, "lastModified should return the last modified date and time");
     15 </script>