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

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

Issue 14914002: Change fromString constructor to parse static method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed additional tests 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_auth_digest_test.dart ('k') | tests/standalone/io/http_headers_test.dart » ('j') | 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 b036da2fe2db7cf7ecef30d165ea2e0593f1df38..cd1c4b5260d94e5ed762ce2a840369bbba8e766b 100644
--- a/tests/standalone/io/http_body_test.dart
+++ b/tests/standalone/io/http_body_test.dart
@@ -19,7 +19,7 @@ void testHttpClientResponseBody() {
(_) {},
onDone: () {
request.response.headers.contentType =
- new ContentType.fromString(mimeType);
+ ContentType.parse(mimeType);
request.response.add(content);
request.response.close();
});
@@ -125,7 +125,7 @@ void testHttpServerRequestBody() {
.then((request) {
if (mimeType != null) {
request.headers.contentType =
- new ContentType.fromString(mimeType);
+ ContentType.parse(mimeType);
}
request.add(content);
return request.close();
« no previous file with comments | « tests/standalone/io/http_auth_digest_test.dart ('k') | tests/standalone/io/http_headers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698