1 <html manifest="resources/modified-manifest.php">
2 <script src="/js-test-resources/js-test.js"></script>
4 var jsTestIsAsync = true;
5 description("Test that a manifest that changes during an update fails.");
7 var gotCheckingEvent = false;
8 function onChecking() { gotCheckingEvent = true; }
11 var gotDownloadingEvent = false;
12 function onDownloading() { gotDownloadingEvent = true; }
16 shouldBeTrue("gotCheckingEvent");
17 shouldBeTrue("gotDownloadingEvent");
18 shouldBe("window.applicationCache.status", "applicationCache.UNCACHED");
21 shouldBeEqualToString("event.reason", "changed");
22 shouldBeEqualToString("event.url", "");
23 shouldBe("event.status", "0");
24 shouldBeTrue("'message' in event");
29 applicationCache.addEventListener('checking', onChecking, false);
30 applicationCache.addEventListener('downloading', onDownloading, false);
31 applicationCache.addEventListener('error', onError, false);