blob: 3312089e028d400854a7bf1d078e0ba149df6b41 [file] [log] [blame]
<html manifest="resources/wrong-content-type.manifest">
<!--
Generate this token with the command:
tools/origin_trials/generate_token.py http://127.0.0.1:8000 AppCache --expire-days=2000
-->
<meta http-equiv="origin-trial" content="AnwB3aSh6U8pmYtO/AzzxELSwk8BRJoj77nUnCq6u3N8LMJKlX/ImydQmXn3SgE0a+8RyowLbV835tXQHJMHuAEAAABQeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQXBwQ2FjaGUiLCAiZXhwaXJ5IjogMTc2MTE3NjE5OH0=">
<body>
<p>Test that a manifest served with an arbitrary content-type is OK.</p>
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
if (window.testRunner) {
testRunner.dumpAsText()
testRunner.waitUntilDone();
}
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
function errorEventListener()
{
log("FAILURE: An error event was dispatched on window.applicationCache.");
if (window.testRunner)
testRunner.notifyDone();
}
function verifyStatus()
{
if (window.applicationCache.status != window.applicationCache.IDLE)
log("FAILURE: Unexpected cache status: " + window.applicationCache.status);
else
log("SUCCESS");
if (window.testRunner)
testRunner.notifyDone();
}
applicationCache.addEventListener('cached', verifyStatus, false);
applicationCache.addEventListener('noupdate', verifyStatus, false);
applicationCache.addEventListener('error', errorEventListener, false);
</script>
</body>
</html>