blob: 7575bab444907ea4a7691ceb657ec99b0694a112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>
|