1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/ajax/offline/offlineChild.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +<html> 1.5 +<head> 1.6 +<title></title> 1.7 + 1.8 +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 +<script type="text/javascript" src="/tests/dom/tests/mochitest/ajax/offline/offlineTests.js"></script> 1.10 + 1.11 + 1.12 +<script type="text/javascript"> 1.13 + 1.14 +// This is called by the parent when the offline update is complete 1.15 +// (since we don't get those events) 1.16 +function doneLoading() 1.17 +{ 1.18 + window.parent.childFinished(); 1.19 +} 1.20 + 1.21 +if (OfflineTest.setupChild()) { 1.22 + // Child frames shouldn't be receiving cache events. 1.23 + applicationCache.onerror = OfflineTest.failEvent; 1.24 + applicationCache.onnoupdate = OfflineTest.failEvent; 1.25 + applicationCache.ondownloading = OfflineTest.failEvent; 1.26 + applicationCache.onprogress = OfflineTest.failEvent; 1.27 + applicationCache.onupdateready = OfflineTest.failEvent; 1.28 + applicationCache.oncached = OfflineTest.failEvent; 1.29 +} 1.30 +</script> 1.31 + 1.32 +</head> 1.33 + 1.34 +<body> 1.35 + 1.36 +</body> </html>