<html manifest="resources/document-write-html-element.manifest">
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function test()
{
    document.write("SUCCESS, no assertion failure");
    document.write("<br>applicationCache.status == " + applicationCache.status);

    if (window.testRunner)
        testRunner.notifyDone();
}

applicationCache.oncached = test;
applicationCache.onnoupdate = test;
</script>
