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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/ajax/offline/missing.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<html manifest="missing.cacheManifest">
     1.5 +<head>
     1.6 +<title>missing test</title>
     1.7 +<script type="text/javascript">
     1.8 +
     1.9 +function obsolete(evt)
    1.10 +{
    1.11 +  window.opener.ok(false, "Got an 'obsolete' event");
    1.12 +  window.opener.finish();
    1.13 +}
    1.14 +
    1.15 +function error(evt) {
    1.16 +  window.opener.ok(true, "Got an 'error' event");
    1.17 +  window.opener.finish();
    1.18 +}
    1.19 +
    1.20 +applicationCache.onobsolete = obsolete;
    1.21 +applicationCache.onerror = error;
    1.22 +</script>
    1.23 +</head>
    1.24 +
    1.25 +<body>
    1.26 +<h1></h1>
    1.27 +</body> </html>

mercurial