• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html manifest="resources/different-scheme.manifest">
2<body>
3<p>Test that application cache doesn't block loading resources with different schemes.</p>
4<script>
5if (window.layoutTestController) {
6    layoutTestController.dumpAsText();
7    layoutTestController.waitUntilDone();
8}
9
10function test()
11{
12    var ifr = document.createElement("iframe");
13    ifr.setAttribute("src", "javascript:parent.success(), 'PASS'");
14    document.body.appendChild(ifr);
15}
16
17function success()
18{
19    document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]);
20    if (window.layoutTestController)
21        layoutTestController.notifyDone();
22}
23
24applicationCache.oncached = test;
25applicationCache.onnoupdate = test;
26</script>
27<body>
28</html>
29