Home | History | Annotate | Download | only in appcache
      1 <html manifest="resources/manifest-containing-itself.manifest">
      2 
      3 <div>This tests that a manifest can contain itself as a resource.</div>
      4 <div id="result">FAILURE</div>
      5 
      6 <script>
      7 if (window.layoutTestController) {
      8     layoutTestController.dumpAsText()
      9     layoutTestController.waitUntilDone();
     10 }
     11 
     12 function cached()
     13 {
     14     document.getElementById('result').innerHTML = 'SUCCESS';
     15     
     16     if (window.layoutTestController)
     17         layoutTestController.notifyDone();
     18 }
     19 
     20 applicationCache.addEventListener('cached', cached, false);
     21 applicationCache.addEventListener('noupdate', cached, false);
     22 
     23 </script>
     24 </html>
     25