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

Unified Diff: tests/standalone/io/stdout_stderr_non_blocking_test.dart

Issue 850333002: Revert "Revert "Make stdout/stderr async"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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: tests/standalone/io/stdout_stderr_non_blocking_test.dart
diff --git a/tests/standalone/io/stdout_stderr_non_blocking_test.dart b/tests/standalone/io/stdout_stderr_non_blocking_test.dart
deleted file mode 100644
index 061e8557d3ddcc2083e04ddce859b234b5a22f00..0000000000000000000000000000000000000000
--- a/tests/standalone/io/stdout_stderr_non_blocking_test.dart
+++ /dev/null
@@ -1,44 +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.
-
-import "package:expect/expect.dart";
-import "dart:async";
-import "dart:convert";
-import "dart:io";
-
-callIOSink(IOSink sink) {
- // Call all methods on IOSink.
- sink.encoding = ASCII;
- Expect.equals(ASCII, sink.encoding);
- sink.write("Hello\n");
- sink.writeln("Hello");
- sink.writeAll(["H", "e", "l", "lo\n"]);
- sink.writeCharCode(72);
- sink.add([101, 108, 108, 111, 10]);
-
- var controller = new StreamController(sync: true);
- var future = sink.addStream(controller.stream);
- controller.add([72, 101, 108]);
- controller.add([108, 111, 10]);
- controller.close();
-
- future.then((_) {
- controller = new StreamController(sync: true);
- controller.stream.pipe(sink);
- controller.add([72, 101, 108]);
- controller.add([108, 111, 10]);
- controller.close();
- });
-}
-
-main() {
- callIOSink(stdout.nonBlocking);
- stdout.nonBlocking.done.then((_) {
- callIOSink(stderr.nonBlocking);
- stderr.nonBlocking.done.then((_) {
- stdout.close();
- stderr.close();
- });
- });
-}
« no previous file with comments | « tests/standalone/io/stdio_nonblocking_test.dart ('k') | tests/standalone/io/stdout_stderr_terminal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698