3 <title>Regression test for bug
20795</title>
6 <p>This is a negative test for https://bugs.webkit.org/show_bug.cgi?id=
20795, it makes sure that forms submitted using GET with a content-type of text/plain actually send data in URL encoded in the URL
</p>
7 <form enctype=
"text/plain" method=
"get" action=
"?" name=
"f">
8 <input type=
"hidden" name=
"f1" value=
"This is field #1 &!@$%\n='<>">
9 <input type=
"hidden" name=
"f2" value='This is field #
2 ""'
>
10 <input type=
"submit" value=
"press me">
13 if (window
.testRunner
) {
14 testRunner
.dumpAsText();
15 testRunner
.waitUntilDone();
18 if (document
.URL
.substring(0, 4) == "file") {
20 if (document
.URL
.indexOf('?') == -1) {
26 document
.f
.style
.display
="none";
27 if (document
.URL
.substring(document
.URL
.indexOf('?')+1, document
.URL
.length
) == "f1=This+is+field+%231+%26%21%40%24%25%5Cn%3D%27%3C%3E&f2=This+is+field+%232+%22%22")
28 document
.write("<p>Success</p>");
30 document
.write("<p>Failure: (" + document
.URL
+ ")</p>");
32 if (window
.testRunner
)
33 testRunner
.notifyDone();
38 document
.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");