Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset=utf-8> |
michael@0 | 5 | <title>Test for euc-kr encoded form submission</title> |
michael@0 | 6 | <script type="text/javascript" src="/resources/testharness.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="/resources/testharnessreport.js"></script> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | <div id="log"></div> |
michael@0 | 11 | <iframe name="ifr"></iframe> |
michael@0 | 12 | <form accept-charset="euc-kr" action="abc" target="ifr"> |
michael@0 | 13 | <input type="hidden" name="a" value="갂"> |
michael@0 | 14 | </form> |
michael@0 | 15 | <script> |
michael@0 | 16 | |
michael@0 | 17 | runTest(); |
michael@0 | 18 | |
michael@0 | 19 | function runTest() { |
michael@0 | 20 | var t = async_test("Test for euc-kr encoded form submission"); |
michael@0 | 21 | var f = document.forms[0]; |
michael@0 | 22 | var ifr = frames.ifr; |
michael@0 | 23 | ifr.onload = function() { |
michael@0 | 24 | t.step(function() { |
michael@0 | 25 | assert_equals("".split.call(ifr.location, "?")[1], "a=%81A"); |
michael@0 | 26 | }); |
michael@0 | 27 | t.done(); |
michael@0 | 28 | }; |
michael@0 | 29 | f.submit(); |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | </script> |
michael@0 | 33 | </body> |
michael@0 | 34 | </html> |