Home | History | Annotate | Download | only in resources
      1 <html manifest="cyrillic-uri.manifest">
      2 <head>
      3 <meta charset="koi8-r">
      4 </head>
      5 <body>
      6 <form method=GET action="?">
      7 <input type=text name=i value="">
      8 </form>
      9 <script>
     10 document.write(location);
     11 function test() {
     12     if (location.search == "") {
     13         document.forms[0].submit();
     14     } else if (location.search == "?i=%F0%D2%CF%D7%C5%D2%CB%C1") {
     15         document.forms[0].elements[0].value="-2";
     16         document.forms[0].submit();
     17     } else if (location.search == "?i=%F0%D2%CF%D7%C5%D2%CB%C1-2") {
     18         parent.postMessage("allDone", "*");
     19     } else {
     20         alert("Unexpected URI: " + location);
     21         parent.postMessage("allDone", "*");
     22     }
     23 }
     24 applicationCache.onnoupdate = function() { test() }
     25 applicationCache.oncached = function() { test() }
     26 </script>
     27 </body>
     28 </html>
     29