blob: a54d8fe78c6139ba8663388efd692655621b5cd7 [file] [log] [blame]
<html manifest="/resources/network-simulator.py?test=appcache-offline-access&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.py?test=appcache-offline-access&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>