Home | History | Annotate | Download | only in appcache
      1 <html manifest="http://user:password@127.0.0.1:8000/appcache/resources/empty.manifest">
      2 <body>
      3 <p>Test that application cache doesn't block loading resources from the same origin with credential.</p>
      4 <script>
      5 if (window.layoutTestController) {
      6     layoutTestController.dumpAsText();
      7     layoutTestController.waitUntilDone();
      8 }
      9 
     10 function test()
     11 {
     12     var ifr = document.createElement("iframe");
     13     ifr.setAttribute("src", "javascript:parent.success(), 'PASS'");
     14     document.body.appendChild(ifr);
     15 }
     16 
     17 function success()
     18 {
     19     document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]);
     20     if (window.layoutTestController)
     21         layoutTestController.notifyDone();
     22 }
     23 
     24 applicationCache.oncached = test;
     25 applicationCache.onnoupdate = test;
     26 </script>
     27 <body>
     28 </html>
     29