api_swapcache-manual.html (777B)
1 <!DOCTYPE HTML> 2 <html manifest="../resources/manifest/clock.manifest"> 3 <head> 4 <title>Offline Application Cache - API_swapCache</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 part of comment in manifest file of server.</li> 11 <li>Refresh the page.</li> 12 </ol> 13 14 <div id="log"></div> 15 16 <script> 17 var t = async_test("swapCache method test"); 18 var cache = window.applicationCache; 19 20 cache.onupdateready = t.step_func(function() { 21 try { 22 cache.swapCache(); 23 t.done(); 24 } catch (e) { 25 assert_unreached("swapCache method failed."); 26 } 27 }); 28 </script> 29 </body> 30 </html>