blob: e6b8d6f9003ea8c05956d4e60a86c0d42958db0d [file] [log] [blame]
function test()
{
applicationCache.oncached = function() { log("cached") }
applicationCache.onnoupdate = function() { log("noupdate") }
applicationCache.onerror = function() { log("error") }
try {
var req = new XMLHttpRequest;
req.open("GET", "/resources/network-simulator.php?test=appcache-offline-access&path=/appcache/resources/simple.txt", false);
req.send(null);
if (req.responseText == "Hello, World!")
parent.postMessage("done", "*");
else
alert("FAIL, unexpected response: " + ex);
} catch (ex) {
alert("FAIL, unexpected error: " + ex);
}
}