Home | History | Annotate | Download | only in appcache
      1 <html manifest="resources/whitelist-wildcard.manifest">
      2 <body>
      3 <p>Test that online whitelist wildcard flag is implemented.</p>
      4 <script>
      5 if (window.layoutTestController) {
      6     layoutTestController.dumpAsText();
      7     layoutTestController.waitUntilDone();
      8 }
      9 
     10 function test()
     11 {
     12     try {
     13         var req = new XMLHttpRequest;
     14         req.open("GET", "resources/empty.txt", false);
     15         req.send();
     16         document.body.appendChild(document.createTextNode("SUCCESS"));
     17     } catch (ex) {
     18         document.body.appendChild(document.createTextNode(ex));
     19     }
     20     if (window.layoutTestController)
     21         layoutTestController.notifyDone();
     22 }
     23 
     24 applicationCache.oncached = test;
     25 applicationCache.onnoupdate = test;
     26 
     27 </script>
     28 </body>
     29 </html>
     30