Html程序  |  22行  |  559 B

<html manifest="resources/manifest-with-empty-file.manifest">
<div>This tests that a manifest that contains an empty file will not crash the browser.</div>
<div id="result">FAILURE</div>
<script>
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}

function cached()
{
    document.getElementById('result').innerHTML = 'SUCCESS';
    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

applicationCache.addEventListener('cached', cached, false);

</script>

</html>