summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/offlineChild.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/ajax/offline/offlineChild.html')
-rw-r--r--dom/tests/mochitest/ajax/offline/offlineChild.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/dom/tests/mochitest/ajax/offline/offlineChild.html b/dom/tests/mochitest/ajax/offline/offlineChild.html
new file mode 100644
index 000000000..d70a060a1
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/offlineChild.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<title></title>
+
+<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+<script type="text/javascript" src="/tests/dom/tests/mochitest/ajax/offline/offlineTests.js"></script>
+
+
+<script type="text/javascript">
+
+// This is called by the parent when the offline update is complete
+// (since we don't get those events)
+function doneLoading()
+{
+ window.parent.childFinished();
+}
+
+if (OfflineTest.setupChild()) {
+ // Child frames shouldn't be receiving cache events.
+ applicationCache.onerror = OfflineTest.failEvent;
+ applicationCache.onnoupdate = OfflineTest.failEvent;
+ applicationCache.ondownloading = OfflineTest.failEvent;
+ applicationCache.onprogress = OfflineTest.failEvent;
+ applicationCache.onupdateready = OfflineTest.failEvent;
+ applicationCache.oncached = OfflineTest.failEvent;
+}
+</script>
+
+</head>
+
+<body>
+
+</body> </html>