Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-get-textplain.html
blob24cc4af2eb3bfb082329ee768075421088120691
1 <html>
2 <head>
3 <title>Regression test for bug 20795</title>
4 </head>
5 <body>
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">
11 </form>
12 <script>
13 if (window.testRunner) {
14 testRunner.dumpAsText();
15 testRunner.waitUntilDone();
18 if (document.URL.substring(0, 4) == "file") {
20 if (document.URL.indexOf('?') == -1) {
22 document.f.submit();
24 } else {
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>");
29 else
30 document.write("<p>Failure: (" + document.URL + ")</p>");
32 if (window.testRunner)
33 testRunner.notifyDone();
36 } else {
38 document.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");
40 </script>
41 </body>
42 </html>