Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/send-document-content-type-charset.html

Issue 791783002: Make XMLHttpRequest::send(document) include charset=UTF-8 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698