1 <html manifest="resources/wrong-content-type.manifest">
3 <p>Test that a manifest served with an arbitrary content-type is OK.</p>
4 <p>Should say SUCCESS:</p>
7 if (window.layoutTestController) {
8 layoutTestController.dumpAsText()
9 layoutTestController.waitUntilDone();
14 document.getElementById("result").innerHTML += message + "<br>";
17 function errorEventListener()
19 log("FAILURE: An error event was dispatched on window.applicationCache.");
20 if (window.layoutTestController)
21 layoutTestController.notifyDone();
24 function verifyStatus()
26 if (window.applicationCache.status != window.applicationCache.IDLE)
27 log("FAILURE: Unexpected cache status: " + window.applicationCache.status);
31 if (window.layoutTestController)
32 layoutTestController.notifyDone();
35 applicationCache.addEventListener('cached', verifyStatus, false);
36 applicationCache.addEventListener('noupdate', verifyStatus, false);
37 applicationCache.addEventListener('error', errorEventListener, false);