Reviewed by Darin.
[WebKit-https.git] / LayoutTests / fast / forms / form-data-encoding.html
index 6bc28e1cb45f90af6760e5390f7a96e779d0bdc8..47364a1676a3ed202f5e45d0ce0d8dfac688fc5d 100644 (file)
@@ -5,34 +5,33 @@
 </head>
 <body>
 <form action="?" name=f>
- <input type=hidden name=q value="&#1090;&#1077;&#1089;&#1090;"><br>
+ <input type=hidden name=q value="&#1105;&#66560;&#119083;çc"><br>
 </form>
 <script>
 if (window.layoutTestController) {
-       layoutTestController.dumpAsText();
-       layoutTestController.waitUntilDone();
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
 }
 
 if (document.URL.substring(0, 4) == "file") {
 
-       if (document.URL.indexOf('?') == -1) {
+    if (document.URL.indexOf('?') == -1) {
+        document.f.q.value += "\u0327"; // cedilla for 'c'
+        document.f.submit();
 
-               document.f.submit();
-
-       } else {
-               
-               if (unescape(document.URL.substring(document.URL.indexOf('?')+1, document.URL.length)) == unescape("q=%26%231090%3B%26%231077%3B%26%231089%3B%26%231090%3B"))
-                       document.write("<p>Success</p>");
-               else
-                       document.write("<p>Failure</p>");
-               
-               if (window.layoutTestController)
-                       layoutTestController.notifyDone();
-       }
+    } else {
+        if (unescape(document.URL.substring(document.URL.indexOf('?')+1, document.URL.length)) == unescape("q=%26%231105%3B%26%2366560%3B%26%23119083%3B%E7%E7"))
+            document.write("<p>Success</p>");
+        else
+            document.write("<p>Failure</p>");
+        
+        if (window.layoutTestController)
+            layoutTestController.notifyDone();
+    }
 
 } else {
 
-       document.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");
+    document.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");
 }
 </script>
 </body>