blob: 7e1533374b95d178c473816edf9c8dbb3fc7cd60 (
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
25
|
<!DOCTYPE HTML>
<html manifest="../resources/manifest/clock.manifest">
<head>
<title>Offline Application Cache - API_status_UPDATEREADY</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("updateready status test"),
cache = window.applicationCache;
cache.onupdateready = t.step_func_done(function() {
assert_equals(cache.status, cache.UPDATEREADY, "cache.status should equals cache.UPDATEREADY");
});
</script>
</body>
</html>
|