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

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

Issue 14796015: Add new HttpMultipartFormData, used for parsing a MimeMultipart and extracting either text or binar… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update doc comments. 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 | « tests/standalone/io/http_multipart_test.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/mime_multipart_parser_test.dart
diff --git a/tests/standalone/io/mime_multipart_parser_test.dart b/tests/standalone/io/mime_multipart_parser_test.dart
index 1045b5a0f18abdd6665bd198dfa136e4aa7f1917..5a81df74a1eadc591d0abef42e5aee4115f43617 100644
--- a/tests/standalone/io/mime_multipart_parser_test.dart
+++ b/tests/standalone/io/mime_multipart_parser_test.dart
@@ -279,12 +279,8 @@ Content-Type: text/plain\r
--\r\r\r
-\r""";
testParse(message, "boundary", [headers, headers], [body1, body2]);
-}
-
-void testParseInvalid() {
- String message;
- // Missing initial CRLF. One body part less.
+ // Without initial CRLF.
message = """
--xxx\r
\r
@@ -295,7 +291,11 @@ Body 1\r
\r
Body2\r
--xxx--\r\n""";
- testParse(message, "xxx", null, ["\r\nBody2"]);
+ testParse(message, "xxx", null, ["\r\nBody 1", "\r\nBody2"]);
+}
+
+void testParseInvalid() {
+ String message;
// Missing end boundary.
message = """
« no previous file with comments | « tests/standalone/io/http_multipart_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698