| <html manifest="reload-iframe.manifest"> | |
| <body> | |
| <script> | |
| function test() | |
| { | |
| try { | |
| var req = new XMLHttpRequest(); | |
| req.open("GET", "resources/not-in-cache.txt", false); | |
| req.send(""); | |
| parent.postMessage("FAIL: Loading an uncached resource didn't raise an exception", "*"); | |
| } catch (e) { | |
| parent.postMessage("SUCCESS", "*"); | |
| } | |
| } | |
| applicationCache.onnoupdate = function() { parent.postMessage("Frame loaded", "*") } | |
| applicationCache.oncached = function() { parent.postMessage("Frame loaded", "*") } | |
| </script> | |
| </body> | |
| </html> |