| <html manifest="resources/manifest-redirect.php"> |
| <p>Test that a redirect makes resource caching fail.</p> |
| <p>Should say SUCCESS:</p> |
| testRunner.waitUntilDone(); |
| document.getElementById("result").innerHTML += message + "<br>"; |
| log("FAIL: An event was dispatched on window.applicationCache, even though it was not associated wuth any cache yet."); |
| // Wait for cache update to finish. |
| if (window.applicationCache.status != window.applicationCache.UNCACHED) |
| log("FAILURE: Unexpected cache status: " + window.applicationCache.status); |
| applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false); |
| applicationCache.addEventListener('noupdate', function() { log("noupdate"); cacheCallback() }, false); |
| applicationCache.addEventListener('error', test, false); |