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

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

Issue 216603010: Rip out dart:io from pkg/http wherever possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 9 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 | « pkg/http/pubspec.yaml ('k') | pkg/http/test/multipart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/http_test.dart
diff --git a/pkg/http/test/http_test.dart b/pkg/http/test/http_test.dart
index 92a14fa447d9dea3d81df42f8f128d7cf4ef2e62..69bc43d961a6ccef883595b402537e28d743aa7f 100644
--- a/pkg/http/test/http_test.dart
+++ b/pkg/http/test/http_test.dart
@@ -298,7 +298,7 @@ main() {
test('read throws an error for a 4** status code', () {
expect(startServer().then((_) {
- expect(http.read(serverUrl.resolve('/error')), throwsHttpException);
+ expect(http.read(serverUrl.resolve('/error')), throwsClientException);
}), completes);
});
@@ -326,7 +326,8 @@ main() {
test('readBytes throws an error for a 4** status code', () {
expect(startServer().then((_) {
- expect(http.readBytes(serverUrl.resolve('/error')), throwsHttpException);
+ expect(http.readBytes(serverUrl.resolve('/error')),
+ throwsClientException);
}), completes);
});
});
« no previous file with comments | « pkg/http/pubspec.yaml ('k') | pkg/http/test/multipart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698