Index: tests/standalone/io/stdin_sync_test.dart |
diff --git a/tests/standalone/io/stdin_sync_test.dart b/tests/standalone/io/stdin_sync_test.dart |
index f687837f7366645032e37852277b6ab8aac5ffc9..0ac4e9df5d502d7b374a01244285d53bbc58fa4e 100644 |
--- a/tests/standalone/io/stdin_sync_test.dart |
+++ b/tests/standalone/io/stdin_sync_test.dart |
@@ -2,10 +2,12 @@ |
// 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:path/path.dart"; |
+import "dart:convert"; |
import "dart:io"; |
import "dart:json"; |
+import "package:path/path.dart"; |
+ |
void testReadByte() { |
void test(String line, List<String> expected) { |
var script = join(dirname(Platform.script), "stdin_sync_script.dart"); |
@@ -16,14 +18,14 @@ void testReadByte() { |
process.stdin.close(); |
process.stderr |
.transform(new StringDecoder()) |
- .transform(new LineTransformer()) |
+ .transform(new LineSplitter()) |
.fold(new StringBuffer(), (b, d) => b..write(d)) |
.then((data) { |
if (data.toString() != '') throw "Bad output: '$data'"; |
}); |
process.stdout |
.transform(new StringDecoder()) |
- .transform(new LineTransformer()) |
+ .transform(new LineSplitter()) |
.fold(new StringBuffer(), (b, d) => b..write(d)) |
.then((data) { |
if (data.toString() != 'true') throw "Bad output: '$data'"; |