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

Unified Diff: utils/tests/testrunner/http_client_tests/http_client_test.dart

Issue 2976313002: Delete old tests that aren't used and/or useful any more. (Closed)
Patch Set: Resurrect dummy_compiler_test and recursive_import_test. Created 3 years, 5 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
Index: utils/tests/testrunner/http_client_tests/http_client_test.dart
diff --git a/utils/tests/testrunner/http_client_tests/http_client_test.dart b/utils/tests/testrunner/http_client_tests/http_client_test.dart
deleted file mode 100644
index 0015eb43b85bb6a917d23632ee0769a52740998f..0000000000000000000000000000000000000000
--- a/utils/tests/testrunner/http_client_tests/http_client_test.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2013, 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 testrunner_test;
-
-import 'dart:async';
-import 'dart:io';
-import 'package:unittest/unittest.dart';
-
-main() {
- var get = (String what, int code, String text) {
- var c = new Completer();
- HttpClient client = new HttpClient();
- client
- .getUrl(Uri.parse("http://127.0.0.1:3456/$what"))
- .then((HttpClientRequest request) {
- // Prepare the request then call close on it to send it.
- return request.close();
- }).then((HttpClientResponse response) {
- // Process the response.
- expect(response.statusCode, code);
- var sb = new StringBuffer();
- response.transform(UTF8.decoder).listen((data) {
- sb.write(data);
- }, onDone: () {
- expect(sb.toString(), text);
- c.complete();
- });
- });
- return c.future;
- };
- test('test1', () {
- return get('test.txt', 200, "Hello world!\n");
- });
- test('test2', () {
- return get('fail.txt', 404, "");
- });
-}

Powered by Google App Engine
This is Rietveld 408576698