1 <html manifest=
"origin-delete-iframe.manifest">
3 // iframe-1 is expected to succeed.
4 applicationCache
.oncached = function() { parent
.postMessage("PASS - cached iframe-1", "*"); };
5 applicationCache
.onerror = function() { parent
.postMessage("FAIL - error caching iframe-1, expected this to succeed", "*"); };
6 applicationCache
.onnoupdate = function() { parent
.postMessage("FAIL - no update iframe-1, all caches should have been deleted before this test", "*"); };
9 function frameMessageReceived(event
) {
10 if (event
.data
=== "appcache_status") {
11 parent
.postMessage("appcache_status=" + applicationCache
.status
, "*");
13 parent
.postMessage("FAIL - unrecognized message", "*");
17 window
.addEventListener("message", frameMessageReceived
, false);