1 <html manifest=
"xhr-foreign-resource-2.manifest">
7 document
.getElementById("result").innerHTML
+= message
+ "<br>";
12 applicationCache
.onnoupdate
= null;
13 applicationCache
.oncached
= null;
15 // simple.txt is only listed s a resource in main frame's manifest, so loading should fail.
17 var req
= new XMLHttpRequest
;
18 req
.open("GET", "simple.txt", false);
21 log("applicationCache.status = " + applicationCache
.status
);
22 parent
.postMessage("FAIL", "*");
25 parent
.postMessage("SUCCESS", "*");
29 applicationCache
.onnoupdate
= cached
;
30 applicationCache
.oncached
= cached
;
32 applicationCache
.onupdateready = function() { log("FAIL: received unexpected updateready event") }
33 applicationCache
.onerror = function() { log("FAIL: received unexpected error event") }