• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html manifest="/resources/network-simulator.php?path=/appcache/resources/offline-access.manifest">
2<div id=result></div>
3<script>
4function log(message)
5{
6    document.getElementById("result").innerHTML += message + "<br>";
7}
8applicationCache.onchecking = function() { log("checking"); }
9applicationCache.ondownloading = function() { log("downloading") }
10applicationCache.onprogress = function() { log("progress") }
11applicationCache.onupdateready = function() { log("updateready") }
12applicationCache.onobsolete = function() { log("obsolete") }
13</script>
14<script src="/resources/network-simulator.php?path=/appcache/resources/offline-access.js"></script>
15<script>
16
17applicationCache.oncached = function() { log("cached"); test() }
18applicationCache.onnoupdate = function() { log("noupdate"); test() }
19applicationCache.onerror = function() { log("error"); test() }
20</script>
21</html>
22