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

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

Issue 22927016: Remove the LineTransformer from dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed one status file Created 7 years, 4 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
« no previous file with comments | « tests/standalone/io/stdin_sync_test.dart ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/string_transformer_test.dart
diff --git a/tests/standalone/io/string_transformer_test.dart b/tests/standalone/io/string_transformer_test.dart
index 054f9736be77b9ca0c628c058e251cd695226ce8..eb6d16847695ca20891fba914571e9086d4b7a33 100644
--- a/tests/standalone/io/string_transformer_test.dart
+++ b/tests/standalone/io/string_transformer_test.dart
@@ -2,12 +2,14 @@
// 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";
import "dart:isolate";
import "dart:utf";
+import "package:expect/expect.dart";
+
void main() {
testUtf8();
testLatin1();
@@ -101,7 +103,7 @@ void testReadLine1() {
var controller = new StreamController(sync: true);
var stream = controller.stream
.transform(new StringDecoder())
- .transform(new LineTransformer());
+ .transform(new LineSplitter());
var stage = 0;
@@ -130,7 +132,7 @@ void testReadLine2() {
var stream = controller.stream
.transform(new StringDecoder())
- .transform(new LineTransformer());
+ .transform(new LineSplitter());
var expectedLines = ['Line1', 'Line2','Line3', 'Line4',
'', '', '', '', '', '',
@@ -161,7 +163,7 @@ void testErrorHandler() {
var errors = 0;
var stream = controller.stream
.transform(new StringDecoder())
- .transform(new LineTransformer());
+ .transform(new LineSplitter());
stream.listen(
(_) {},
onDone: () {
« no previous file with comments | « tests/standalone/io/stdin_sync_test.dart ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698