1<html> 2<script> 3if (window.layoutTestController) { 4 layoutTestController.dumpAsText(); 5 layoutTestController.waitUntilDone(); 6} 7 8document.removeChild(document.documentElement); 9var newHTML = document.createElement("html"); 10newHTML.setAttribute("manifest", "resources/insert-html-element-with-manifest.manifest"); 11document.appendChild(newHTML); 12 13window.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