Home | History | Annotate | Download | only in resources
      1 <html manifest="reload-iframe.manifest">
      2 <body>
      3 <script>
      4 function test()
      5 {
      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", "*");
     13     }
     14 }
     15 
     16 applicationCache.onnoupdate = function() { parent.postMessage("Frame loaded", "*") }
     17 applicationCache.oncached = function() { parent.postMessage("Frame loaded", "*") }
     18 
     19 </script>
     20 </body>
     21 </html>
     22