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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/ajax/offline/test_missingManifest.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<title>Test missing manifest</title>
     1.7 +
     1.8 +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.9 +<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.10 +
    1.11 +<script type="text/javascript">
    1.12 +
    1.13 +var gTestWin;
    1.14 +
    1.15 +SimpleTest.waitForExplicitFinish();
    1.16 +
    1.17 +SpecialPowers.pushPermissions([{'type': 'offline-app', 'allow': true, 'context': document}], startTest);
    1.18 +
    1.19 +function startTest() {
    1.20 +  // now this will properly load the manifest.
    1.21 +  gTestWin = window.open("missing.html");
    1.22 +}
    1.23 +
    1.24 +function finish() {
    1.25 +  gTestWin.close();
    1.26 +  SimpleTest.finish();
    1.27 +}
    1.28 +
    1.29 +</script>
    1.30 +
    1.31 +</head>
    1.32 +
    1.33 +<body>
    1.34 +
    1.35 +</body>
    1.36 +</html>

mercurial