OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="GBK"> |
| 5 <title>XMLHttpRequest.send(document) Content-Type header</title> |
| 6 <script src="../resources/testharness.js"></script> |
| 7 <script src="../resources/testharnessreport.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <script> |
| 11 async_test(function(t) { |
| 12 assert_equals(document.charset, "GBK"); |
| 13 xhr = new XMLHttpRequest; |
| 14 xhr.open("POST", "print-content-type.cgi"); |
| 15 xhr.send(document); |
| 16 xhr.onloadend = t.step_func_done(function() { |
| 17 assert_equals(xhr.responseText, "application/xml;charset=UTF-8\n"); |
| 18 }); |
| 19 }); |
| 20 </script> |
| 21 </body> |
| 22 </html> |
OLD | NEW |