1 <script> 2 if (window.layoutTestController) { 3 layoutTestController.dumpAsText(); 4 layoutTestController.waitUntilDone(); 5 } 6 7 window.onload = function() 8 { 9 document.write("<html manifest='resources/document-write-html-element.manifest'>"); 10 applicationCache.oncached = function() { 11 alert("FAIL: appcache cached"); 12 } 13 applicationCache.onnoupdate = function() { 14 alert("FAIL: appcache noupdate"); 15 } 16 applicationCache.onerror = function() { 17 alert("FAIL: appcache error"); 18 } 19 20 setTimeout(function() { 21 document.write("DONE. Passed if there were no alerts displayed."); 22 if (window.layoutTestController) 23 layoutTestController.notifyDone(); 24 }, 100); 25 } 26 </script> 27