tor-browser

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

event_updateready_swapcache-manual.html (853B)


      1 <!DOCTYPE HTML>
      2 <html manifest="../resources/manifest/clock.manifest">
      3  <head>
      4    <title>Offline Application Cache - Event_updateready_swapCache</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7  </head>
      8  <body>
      9    <ol>
     10      <li>Modify the commented part in manifest file (manifest/clock.manifest) on the server.</li>
     11      <li>Refresh the page.</li>
     12    </ol>
     13 
     14    <div id="log"></div>
     15 
     16    <script>
     17      var t = async_test("swapCache method test after updateready event is raised");
     18      var cache = window.applicationCache;
     19 
     20      cache.onupdateready = t.step_func(function() {
     21        try {
     22          cache.swapCache();
     23          t.done();
     24        } catch (e) {
     25          assert_unreached("swapCache method failed.");
     26        }
     27      })
     28    </script>
     29  </body>
     30 </html>