diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/reload-iframe.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/resources/reload-iframe.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/reload-iframe.html b/LayoutTests/http/tests/appcache/resources/reload-iframe.html new file mode 100644 index 0000000..7575bab --- /dev/null +++ b/LayoutTests/http/tests/appcache/resources/reload-iframe.html @@ -0,0 +1,21 @@ +<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> |