4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
9 var div
= document
.getElementsByTagName("div")[0];
10 div
.innerHTML
= '<html manifest="resources/insert-html-element-with-manifest.manifest">'
12 window
.onload = function()
14 applicationCache
.oncached = function() {
15 alert("FAIL: appcache cached");
17 applicationCache
.onnoupdate = function() {
18 alert("FAIL: appcache noupdate");
20 applicationCache
.onerror = function() {
21 alert("FAIL: appcache error");
24 setTimeout(function() {
25 document
.write("DONE. Passed if there were no alerts displayed.");
26 if (window
.testRunner
)
27 testRunner
.notifyDone();