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

Unified Diff: tests/standalone/io/http_body_test.dart

Issue 14834016: Don't decodeHttpEntityString on urlencoded post data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/http_body_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_body_test.dart
diff --git a/tests/standalone/io/http_body_test.dart b/tests/standalone/io/http_body_test.dart
index 113c7c184f594be7d8679bd68b5206b9a5e12f92..419e3810791f30a32b6b0165ea94151f7fa6aeaa 100644
--- a/tests/standalone/io/http_body_test.dart
+++ b/tests/standalone/io/http_body_test.dart
@@ -247,26 +247,75 @@ File content\r
"form");
test('application/x-www-form-urlencoded',
- '%E5%B9%B3%3D%E4%BB%AE%E5%90%8D=%26%2324179%3B%26%2320206%3B%26%'
- '2321517%3B&b=%26%2324179%3B%26%2320206%3B%26%2321517%3B'.codeUnits,
+ '%E5%B9%B3%3D%E4%BB%AE%E5%90%8D=%E5%B9%B3%E4%BB%AE%E5%90%8D&b'
+ '=%E5%B9%B3%E4%BB%AE%E5%90%8D'.codeUnits,
{ 'b' : '平仮名',
'平=仮名' : '平仮名'},
"form");
test('application/x-www-form-urlencoded',
'a=%F8+%26%23548%3B'.codeUnits,
- { 'a' : '\u{FFFD}\u{0224}' },
+ { 'a' : '\u{FFFD}Ȥ' },
"form");
test('application/x-www-form-urlencoded',
- 'a=%F8+%26%23548%3B'.codeUnits,
+ 'a=%C3%B8+%C8%A4'.codeUnits,
{ 'a' : 'ø Ȥ' },
+ "form");
+
+ test('application/x-www-form-urlencoded',
+ 'a=%F8+%26%23548%3B'.codeUnits,
+ { 'a' : 'ø Ȥ' },
"form",
defaultEncoding: Encoding.ISO_8859_1);
test('application/x-www-form-urlencoded',
- 'a=%C3%B8+%C8%A4'.codeUnits,
- { 'a' : 'ø Ȥ' },
+ 'name=%26'.codeUnits,
+ { 'name' : '&' },
+ "form",
+ defaultEncoding: Encoding.ISO_8859_1);
+
+ test('application/x-www-form-urlencoded',
+ 'name=%F8%26'.codeUnits,
+ { 'name' : 'ø&' },
+ "form",
+ defaultEncoding: Encoding.ISO_8859_1);
+
+ test('application/x-www-form-urlencoded',
+ 'name=%26%3B'.codeUnits,
+ { 'name' : '&;' },
+ "form",
+ defaultEncoding: Encoding.ISO_8859_1);
+
+ test('application/x-www-form-urlencoded',
+ 'name=%26%23548%3B%26%23548%3B'.codeUnits,
+ { 'name' : 'ȤȤ' },
+ "form",
+ defaultEncoding: Encoding.ISO_8859_1);
+
+ test('application/x-www-form-urlencoded',
+ 'name=%26'.codeUnits,
+ { 'name' : '&' },
+ "form");
+
+ test('application/x-www-form-urlencoded',
+ 'name=%C3%B8%26'.codeUnits,
+ { 'name' : 'ø&' },
+ "form");
+
+ test('application/x-www-form-urlencoded',
+ 'name=%26%3B'.codeUnits,
+ { 'name' : '&;' },
+ "form");
+
+ test('application/x-www-form-urlencoded',
+ 'name=%C8%A4%26%23548%3B'.codeUnits,
+ { 'name' : 'ȤȤ' },
+ "form");
+
+ test('application/x-www-form-urlencoded',
+ 'name=%C8%A4%C8%A4'.codeUnits,
+ { 'name' : 'ȤȤ' },
"form");
}
« no previous file with comments | « sdk/lib/io/http_body_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698