blob: c87409773c7fc11d0ce839c632c05e9599933ffc (
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
|
<html manifest="resources/different-scheme.manifest">
<body>
<p>Test that application cache doesn't block loading resources with different schemes.</p>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function test()
{
var ifr = document.createElement("iframe");
ifr.setAttribute("src", "javascript:parent.success(), 'PASS'");
document.body.appendChild(ifr);
}
function success()
{
document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]);
if (window.layoutTestController)
layoutTestController.notifyDone();
}
applicationCache.oncached = test;
applicationCache.onnoupdate = test;
</script>
<body>
</html>
|