OLD | NEW |
1 <html> | 1 <!DOCTYPE html> |
2 <body> | 2 |
3 <p>Test for <a href="http://crbug.com/172802">bug 172802</a> | 3 <p>Test for <a href="http://crbug.com/172802">bug 172802</a> |
4 - Wrong default Content-Type set in XMLHttpRequest.send(DOMString)</p> | 4 - Wrong default Content-Type set in XMLHttpRequest.send(DOMString)</p> |
5 <p>Should be text/plain;charset=UTF-8:</p> | 5 <p>Should be text/plain;charset=UTF-8:</p> |
6 <script> | 6 <script> |
7 if (window.testRunner) | 7 if (window.testRunner) |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 | 9 |
10 objXmlHttp = new XMLHttpRequest; | 10 objXmlHttp = new XMLHttpRequest; |
11 objXmlHttp.open("POST", "print-content-type.cgi", false); | 11 objXmlHttp.open("POST", "print-content-type.cgi", false); |
12 objXmlHttp.send(""); | 12 objXmlHttp.send(""); |
13 document.write("<pre>" + objXmlHttp.responseText + "</pre>"); | 13 document.write("<pre>" + objXmlHttp.responseText + "</pre>"); |
14 </script> | 14 </script> |
15 </body> | |
16 </html> | |
OLD | NEW |