1 <html manifest=
"resources/abort-cache-onchecking-resource-404.manifest">
3 if (window
.testRunner
) {
4 testRunner
.dumpAsText()
5 testRunner
.waitUntilDone();
8 function log(message
) {
9 document
.getElementById("result").innerHTML
+= message
+ "\n";
12 function onchecking() {
13 applicationCache
.abort();
16 function onnoupdate() {
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
26 if (window
.testRunner
)
27 testRunner
.notifyDone();
30 function onupdateready() {
33 if (window
.testRunner
)
34 testRunner
.notifyDone();
39 if (window
.testRunner
)
40 testRunner
.notifyDone();
43 applicationCache
.addEventListener('checking', onchecking
, false);
44 applicationCache
.addEventListener('noupdate', onnoupdate
, false);
45 applicationCache
.addEventListener('cached', oncached
, false);
46 applicationCache
.addEventListener('error', onerror
, false);
47 applicationCache
.addEventListener('updateready', onupdateready
, false);
51 <div>This tests that download process was aborted after checking event and before update failed.
</div>
52 <div id=
"result"></div>