api_status_updateready-manual.html (779B)
1 <!DOCTYPE HTML> 2 <html manifest="../resources/manifest/clock.manifest"> 3 <head> 4 <title>Offline Application Cache - API_status_UPDATEREADY</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 14 <div id="log"></div> 15 16 <script> 17 var t = async_test("updateready status test"), 18 cache = window.applicationCache; 19 20 cache.onupdateready = t.step_func_done(function() { 21 assert_equals(cache.status, cache.UPDATEREADY, "cache.status should equals cache.UPDATEREADY"); 22 }); 23 </script> 24 </body> 25 </html>