tor-browser

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

api_status_obsolete-manual.html (743B)


      1 <!DOCTYPE HTML>
      2 <html manifest="../resources/manifest/clock.manifest">
      3  <head>
      4    <title>Offline Application Cache - API_status_OBSOLETE</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7  </head>
      8  <body>
      9    <ol>
     10      <li>Remove the manifest file (manifest/clock.manifest) from the server.</li>
     11      <li>Refresh the page.</li>
     12    </ol>
     13    <div id="log"></div>
     14 
     15    <script>
     16      var t = async_test("obsolete status test"),
     17          cache = window.applicationCache;
     18 
     19      cache.onobsolete = t.step_func_done(function() {
     20        assert_equals(cache.status, cache.OBSOLETE, "cache.status should equals cache.OBSOLETE");
     21      });
     22    </script>
     23  </body>
     24 </html>