Home | History | Annotate | Download | only in appcache
      1 <html manifest="THIS_FILE_DOES_NOT_EXIST.manifest">
      2 <head>
      3   <script type="text/javascript">
      4     var onloadHasBeenCalled = false;
      5 
      6     if (window.layoutTestController) {
      7         layoutTestController.dumpAsText()
      8         layoutTestController.waitUntilDone();
      9     }
     10 
     11     window.applicationCache.onchecking = function() {
     12         if (onloadHasBeenCalled)
     13             document.getElementById('result').innerHTML = "SUCCESS"
     14         if (window.layoutTestController)
     15             layoutTestController.notifyDone();
     16     }
     17   </script>
     18   <script src="THIS_FILE_DOES_NOT_EXIST.js" type="text/javascript"></script>
     19 </head>
     20 <body onload="onloadHasBeenCalled = true">
     21 Test that AppicationCache events are deferred until after onload has been fired.
     22 <div id="result">FAILURE</div>
     23 </body>
     24 </html>
     25