summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/offlineChild.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/general/offlineChild.html')
-rw-r--r--browser/base/content/test/general/offlineChild.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/browser/base/content/test/general/offlineChild.html b/browser/base/content/test/general/offlineChild.html
new file mode 100644
index 000000000..43f225b3b
--- /dev/null
+++ b/browser/base/content/test/general/offlineChild.html
@@ -0,0 +1,20 @@
+<html manifest="offlineChild.cacheManifest">
+<head>
+<title></title>
+<script type="text/javascript">
+
+function finish(success) {
+ window.parent.postMessage(success ? "success" : "failure", "*");
+}
+
+applicationCache.oncached = function() { finish(true); }
+applicationCache.onnoupdate = function() { finish(true); }
+applicationCache.onerror = function() { finish(false); }
+
+</script>
+</head>
+
+<body>
+<h1>Child</h1>
+</body>
+</html>