summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html
blob: 674706a32f0814bb66ba4d7dafccf09a26e7e4d5 (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
<html manifest="https://127.0.0.1:8443/appcache/resources/different-https-origin-resource.manifest">
<script>
var hadError = false;
var result;

function finish()
{
    if (!hadError)
        result = "PASS";
    parent.postMessage(result, '*');
}
function fail()
{
    result = "FAIL: Different https origin resource is getting downloaded to cache.";
    hadError = true;
}
function error()
{
    result = "ERROR";
    hadError = true;
    finish();
}

applicationCache.onprogress = function() { fail(); }
applicationCache.onnoupdate = function() { finish(); }
applicationCache.oncached = function() { finish(); }
applicationCache.onerror = function() { error(); }
</script>
</html>