summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/empty-manifest.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/appcache/empty-manifest.html')
-rw-r--r--LayoutTests/http/tests/appcache/empty-manifest.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/empty-manifest.html b/LayoutTests/http/tests/appcache/empty-manifest.html
new file mode 100644
index 0000000..67752e6
--- /dev/null
+++ b/LayoutTests/http/tests/appcache/empty-manifest.html
@@ -0,0 +1,23 @@
+<html manifest="resources/empty.manifest">
+
+<div>This tests that the cached event gets sent even if the manifest is empty.</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>