2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
7 window
.onload = function()
9 document
.write("<html manifest='resources/document-write-html-element.manifest'>");
10 applicationCache
.oncached = function() {
11 alert("FAIL: appcache cached");
13 applicationCache
.onnoupdate = function() {
14 alert("FAIL: appcache noupdate");
16 applicationCache
.onerror = function() {
17 alert("FAIL: appcache error");
20 setTimeout(function() {
21 document
.write("DONE. Passed if there were no alerts displayed.");
22 if (window
.testRunner
)
23 testRunner
.notifyDone();