1 <html manifest="subframes-3.manifest"> 2 <script> 3 function test() 4 { 5 applicationCache.onnoupdate = null; 6 7 try { 8 var req = new XMLHttpRequest; 9 req.open("GET", "simple.txt", false); 10 req.send(null); 11 alert("FAIL, unexpected response: " + req.responseText); 12 } catch (ex) { 13 // Loading should fail, because simple.txt is not in cache manifest. 14 parent.postMessage("allDone", "*"); 15 } 16 } 17 18 // The cache has been fully created before the iframe was inserted, and the manifest didn't change. 19 applicationCache.onnoupdate = test; 20 21 applicationCache.onupdateready = function() { alert("Unexpected updateready event") } 22 applicationCache.oncached = function() { alert("Unexpected cached event") } 23 applicationCache.onerror = function() { alert("Unexpected error event") } 24 25 </script> 26 </html> 27