summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/offline/application-cache-api/api_update.html
blob: 452daa711dfe032deae77ef0af0c850293590abb (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_update</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>

    <script>
      var cache = window.applicationCache;

      test(function() {
        try {
          cache.update()
          assert_true(true, "update method test")
        } catch (e) {
          assert_unreached("update method failed.");
        }
      });
    </script>
  </body>
</html>