api_status_downloading-manual.html (778B)
1 <!DOCTYPE HTML> 2 <html manifest="../resources/manifest/clock.manifest"> 3 <head> 4 <title>Offline Application Cache - API_status_DOWNLOADING</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 the manifest file (manifest/clock.manifest) on the server.</li> 11 <li>Refresh the page.</li> 12 </ol> 13 <div id="log"></div> 14 15 <script> 16 var t = async_test("downloading status test"), 17 cache = window.applicationCache; 18 19 cache.ondownloading = t.step_func_done(function() { 20 assert_equals(cache.status, cache.DOWNLOADING, "cache.status should equals cache.DOWNLOADING"); 21 }); 22 </script> 23 </body> 24 </html>