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

Unified Diff: pkg/http/test/io/streamed_request_test.dart

Issue 261763002: Rip out the last dart:io dependency from pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 8 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/test/io/request_test.dart ('k') | pkg/http/test/io/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/io/streamed_request_test.dart
diff --git a/pkg/http/test/streamed_request_test.dart b/pkg/http/test/io/streamed_request_test.dart
similarity index 73%
copy from pkg/http/test/streamed_request_test.dart
copy to pkg/http/test/io/streamed_request_test.dart
index c9e3689dc372fc6d9cb1ca76e9812c027627d04e..ef823f99e24c6c2104213579748f3b8a217c330f 100644
--- a/pkg/http/test/streamed_request_test.dart
+++ b/pkg/http/test/io/streamed_request_test.dart
@@ -1,8 +1,8 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library streamed_request_test;
+library http.test.io.streamed_request_test;
import 'dart:convert';
@@ -13,16 +13,6 @@ import 'utils.dart';
void main() {
group('contentLength', () {
- test('defaults to null', () {
- var request = new http.StreamedRequest('POST', dummyUrl);
- expect(request.contentLength, isNull);
- });
-
- test('disallows negative values', () {
- var request = new http.StreamedRequest('POST', dummyUrl);
- expect(() => request.contentLength = -1, throwsArgumentError);
- });
-
test('controls the Content-Length header', () {
return startServer().then((_) {
var request = new http.StreamedRequest('POST', serverUrl);
@@ -51,12 +41,6 @@ void main() {
isNot(contains('content-length'))))));
}).whenComplete(stopServer);
});
-
- test('is frozen by finalize()', () {
- var request = new http.StreamedRequest('POST', dummyUrl);
- request.finalize();
- expect(() => request.contentLength = 10, throwsStateError);
- });
});
// Regression test.
« no previous file with comments | « pkg/http/test/io/request_test.dart ('k') | pkg/http/test/io/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698