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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/encoding-send-latin-1.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <meta charset="utf-8"> 1 <meta charset="utf-8">
2 <script src="../../js-test-resources/js-test-pre.js"></script> 2 <script src="../../js-test-resources/js-test.js"></script>
3 <script> 3 <script>
4 description("Test that Latin-1 characters are ent to the server correctly."); 4 description("Test that Latin-1 characters are ent to the server correctly.");
5 5
6 var tests = [ 6 var tests = [
7 "ASCII", 7 "ASCII",
8 "Latin-1: \xC5", 8 "Latin-1: \xC5",
9 "Fake UTF-8: \xC3\x85", 9 "Fake UTF-8: \xC3\x85",
10 "UTF-16: \u6587", 10 "UTF-16: \u6587",
11 "32-bit Character: \uD83D\uDCA9", 11 "32-bit Character: \uD83D\uDCA9",
12 ]; 12 ];
13 13
14 for (var i = 0; i < tests.length; ++i) { 14 for (var i = 0; i < tests.length; ++i) {
15 var xhr = new XMLHttpRequest(); 15 var xhr = new XMLHttpRequest();
16 xhr.open("POST", "/xmlhttprequest/resources/post-echo-as-utf-8.cgi", false); 16 xhr.open("POST", "/xmlhttprequest/resources/post-echo-as-utf-8.cgi", false);
17 xhr.send(tests[i]); 17 xhr.send(tests[i]);
18 shouldBe("xhr.responseText", "tests[" + i + "]"); 18 shouldBe("xhr.responseText", "tests[" + i + "]");
19 } 19 }
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698