Source code

Revision control

Copy as Markdown

Other Tools

<!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>