| <html manifest="/resources/network-simulator.php?path=/appcache/resources/offline-access.manifest"> | |
| <div id=result></div> | |
| <script> | |
| function log(message) | |
| { | |
| document.getElementById("result").innerHTML += message + "<br>"; | |
| } | |
| applicationCache.onchecking = function() { log("checking"); } | |
| applicationCache.ondownloading = function() { log("downloading") } | |
| applicationCache.onprogress = function() { log("progress") } | |
| applicationCache.onupdateready = function() { log("updateready") } | |
| applicationCache.onobsolete = function() { log("obsolete") } | |
| </script> | |
| <script src="/resources/network-simulator.php?path=/appcache/resources/offline-access.js"></script> | |
| <script> | |
| applicationCache.oncached = function() { log("cached"); test() } | |
| applicationCache.onnoupdate = function() { log("noupdate"); test() } | |
| applicationCache.onerror = function() { log("error"); test() } | |
| </script> | |
| </html> |