summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/offlineChild.html
blob: d70a060a16416c20feb8c4b042a243e282da6685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>