summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/offlineChild2.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/general/offlineChild2.html')
-rw-r--r--browser/base/content/test/general/offlineChild2.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/browser/base/content/test/general/offlineChild2.html b/browser/base/content/test/general/offlineChild2.html
new file mode 100644
index 000000000..ac762e759
--- /dev/null
+++ b/browser/base/content/test/general/offlineChild2.html
@@ -0,0 +1,20 @@
+<html manifest="offlineChild2.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>