Index: pkg/http/test/streamed_request_test.dart |
diff --git a/pkg/http/test/streamed_request_test.dart b/pkg/http/test/streamed_request_test.dart |
deleted file mode 100644 |
index 444b36b3d248d3c3e438fec6cd5852ac78b37f77..0000000000000000000000000000000000000000 |
--- a/pkg/http/test/streamed_request_test.dart |
+++ /dev/null |
@@ -1,30 +0,0 @@ |
-// Copyright (c) 2012, 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; |
- |
-import 'package:http/http.dart' as http; |
-import 'package:unittest/unittest.dart'; |
- |
-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('is frozen by finalize()', () { |
- var request = new http.StreamedRequest('POST', dummyUrl); |
- request.finalize(); |
- expect(() => request.contentLength = 10, throwsStateError); |
- }); |
- }); |
-} |