3 applicationCache
.oncached = function() { log("cached") }
4 applicationCache
.onnoupdate = function() { log("noupdate") }
5 applicationCache
.onerror = function() { log("error") }
8 var req
= new XMLHttpRequest
;
9 req
.open("GET", "/resources/network-simulator.php?path=/appcache/resources/simple.txt", false);
11 if (req
.responseText
== "Hello, World!")
12 parent
.postMessage("done", "*");
14 alert("FAIL, unexpected response: " + ex
);
16 alert("FAIL, unexpected error: " + ex
);