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

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

Issue 810223002: Remove the http package from the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/http/test/html/streamed_request_test.dart
diff --git a/pkg/http/test/html/streamed_request_test.dart b/pkg/http/test/html/streamed_request_test.dart
deleted file mode 100644
index 907bcaffee2db90ef1c8128a27b92b5233d867fe..0000000000000000000000000000000000000000
--- a/pkg/http/test/html/streamed_request_test.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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 http.test.html.streamed_request_test;
-
-import 'package:http/http.dart' as http;
-import 'package:http/browser_client.dart';
-import 'package:unittest/unittest.dart';
-
-import 'utils.dart';
-
-void main() {
- group('contentLength', () {
- test("works when it's set", () {
- var request = new http.StreamedRequest('POST', echoUrl);
- request.contentLength = 10;
- request.sink.add([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
- request.sink.close();
-
- return new BrowserClient().send(request).then((response) {
- expect(response.stream.toBytes(),
- completion(equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])));
- });
- });
-
- test("works when it's not set", () {
- var request = new http.StreamedRequest('POST', echoUrl);
- request.sink.add([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
- request.sink.close();
-
- return new BrowserClient().send(request).then((response) {
- expect(response.stream.toBytes(),
- completion(equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])));
- });
- });
- });
-}
« no previous file with comments | « pkg/http/test/html/client_test.dart ('k') | pkg/http/test/html/utils.dart » ('j') | pkg/pkg.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698