dom/tests/mochitest/ajax/offline/offlineChild.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html>
     2 <head>
     3 <title></title>
     5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6 <script type="text/javascript" src="/tests/dom/tests/mochitest/ajax/offline/offlineTests.js"></script>
     9 <script type="text/javascript">
    11 // This is called by the parent when the offline update is complete
    12 // (since we don't get those events)
    13 function doneLoading()
    14 {
    15   window.parent.childFinished();
    16 }
    18 if (OfflineTest.setupChild()) {
    19   // Child frames shouldn't be receiving cache events.
    20   applicationCache.onerror = OfflineTest.failEvent;
    21   applicationCache.onnoupdate = OfflineTest.failEvent;
    22   applicationCache.ondownloading = OfflineTest.failEvent;
    23   applicationCache.onprogress = OfflineTest.failEvent;
    24   applicationCache.onupdateready = OfflineTest.failEvent;
    25   applicationCache.oncached = OfflineTest.failEvent;
    26 }
    27 </script>
    29 </head>
    31 <body>
    33 </body> </html>

mercurial