Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / appcache / resources / reload-iframe.html
blob7575bab444907ea4a7691ceb657ec99b0694a112
1 <html manifest="reload-iframe.manifest">
2 <body>
3 <script>
4 function test()
6 try {
7 var req = new XMLHttpRequest();
8 req.open("GET", "resources/not-in-cache.txt", false);
9 req.send("");
10 parent.postMessage("FAIL: Loading an uncached resource didn't raise an exception", "*");
11 } catch (e) {
12 parent.postMessage("SUCCESS", "*");
16 applicationCache.onnoupdate = function() { parent.postMessage("Frame loaded", "*") }
17 applicationCache.oncached = function() { parent.postMessage("Frame loaded", "*") }
19 </script>
20 </body>
21 </html>