diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/manifest-with-empty-file.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/manifest-with-empty-file.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/manifest-with-empty-file.html b/LayoutTests/http/tests/appcache/manifest-with-empty-file.html new file mode 100644 index 0000000..b9ae051 --- /dev/null +++ b/LayoutTests/http/tests/appcache/manifest-with-empty-file.html @@ -0,0 +1,21 @@ +<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> |