blob: f2d53b16cf4902b984f48fa20b61e0b5515ff15b [file] [log] [blame]
<html manifest="/resources/network-simulator.php?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.php?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>