Reviewed by Darin.
[WebKit-https.git] / LayoutTests / fast / forms / form-data-encoding-2.html
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4 <title>Charsets and submitting forms</title>
5 </head>
6 <body>
7 <form action="?" name=f>
8  <input type=hidden name=q value="&#1105;&#66560;&#119083;çc"><br>
9 </form>
10 <script>
11 if (window.layoutTestController) {
12     layoutTestController.dumpAsText();
13     layoutTestController.waitUntilDone();
14 }
15
16 if (document.URL.substring(0, 4) == "file") {
17
18     if (document.URL.indexOf('?') == -1) {
19         document.f.q.value += "\u0327"; // cedilla for 'c'
20         document.f.submit();
21
22     } else {
23         if (unescape(document.URL.substring(document.URL.indexOf('?')+1, document.URL.length)) == unescape("q=%D1%91%F0%90%90%80%F0%9D%84%AB%C3%A7%C3%A7"))
24             document.write("<p>Success</p>");
25         else
26             document.write("<p>Failure</p>");
27         
28         if (window.layoutTestController)
29             layoutTestController.notifyDone();
30     }
31
32 } else {
33
34     document.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");
35 }
36 </script>
37 </body>
38 </html>