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

Unified Diff: pkg/http/test/request_test.dart

Issue 11480003: Add "toString()" to BaseRequest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/http/lib/src/base_request.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/request_test.dart
diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart
index e26ee75e40ba4e44609eb6dcc500032fc9bca8dd..1b3d4cace964a16021ffb2e5a895c0ab1d3f8e25 100644
--- a/pkg/http/test/request_test.dart
+++ b/pkg/http/test/request_test.dart
@@ -387,5 +387,12 @@ void main() {
expect(request.finalize, throwsStateError);
});
});
+
+ group('#toString()', () {
+ test('includes the method and URL', () {
+ var request = new http.Request('POST', dummyUrl);
+ expect(request.toString(), 'POST $dummyUrl');
+ });
+ });
}
« no previous file with comments | « pkg/http/lib/src/base_request.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698