Home | History | Annotate | Download | only in appcache
      1 <html>
      2 <script>
      3 if (window.layoutTestController) {
      4     layoutTestController.dumpAsText();
      5     layoutTestController.waitUntilDone();
      6 }
      7 
      8 document.removeChild(document.documentElement);
      9 var newHTML = document.createElement("html");
     10 newHTML.setAttribute("manifest", "resources/insert-html-element-with-manifest.manifest");
     11 document.appendChild(newHTML);
     12 
     13 window.onload = function()
     14 {
     15     applicationCache.oncached = function() {
     16         alert("FAIL: appcache cached");
     17     }
     18     applicationCache.onnoupdate = function() {
     19         alert("FAIL: appcache noupdate");
     20     }
     21     applicationCache.onerror = function() {
     22         alert("FAIL: appcache error");
     23     }
     24 
     25     setTimeout(function() {
     26         document.write("DONE. Passed if there were no alerts displayed.");
     27         if (window.layoutTestController)
     28             layoutTestController.notifyDone();
     29     }, 100);
     30 }
     31 </script>
     32