summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/offline/application-cache-api/api_status_downloading-manual.html
blob: c09d11d787f212bd261337a41591b9461058fb38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
  <head>
    <title>Offline Application Cache - API_status_DOWNLOADING</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <ol>
      <li>Modify the commented part in the manifest file (manifest/clock.manifest) on the server.</li>
      <li>Refresh the page.</li>
    </ol>
    <div id="log"></div>

    <script>
      var t = async_test("downloading status test"),
          cache = window.applicationCache;

      cache.ondownloading = t.step_func_done(function() {
        assert_equals(cache.status, cache.DOWNLOADING, "cache.status should equals cache.DOWNLOADING");
      });
    </script>
  </body>
</html>