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

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

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 7 years, 7 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/string_transformer_test.dart
diff --git a/tests/standalone/io/string_transformer_test.dart b/tests/standalone/io/string_transformer_test.dart
index a7dd5443ef6e29cb3c1417bb44b80dc5f2bc6e84..e9e11b514d18c76e5640ae9c245371c98b7403cb 100644
--- a/tests/standalone/io/string_transformer_test.dart
+++ b/tests/standalone/io/string_transformer_test.dart
@@ -17,7 +17,7 @@ void testUtf8() {
0xef, 0xbf, 0xbf,
0xf0, 0x9d, 0x84, 0x9e,
0x100, -0x1, -0xFF];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add(data);
controller.close();
var stringStream = controller.stream
@@ -52,7 +52,7 @@ void testLatin1() {
0x80,
0xff,
0x100, -0x1, -0xff];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add(data);
controller.close();
var stream = controller.stream
@@ -73,7 +73,7 @@ void testAscii() {
0x44, 0x61, 0x72, 0x74,
0x7f,
0xf4, 0x100, -0x1, -0xff];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add(data);
controller.close();
var stream = controller.stream
@@ -88,7 +88,7 @@ void testAscii() {
}
void testReadLine1() {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var stream = controller.stream
.transform(new StringDecoder())
.transform(new LineTransformer());
@@ -119,7 +119,7 @@ void testReadLine1() {
}
void testReadLine2() {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var stream = controller.stream
.transform(new StringDecoder())
@@ -187,7 +187,7 @@ class TestException implements Exception {
}
testErrorHandler() {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var errors = 0;
var stream = controller.stream
.transform(new StringDecoder())
@@ -212,7 +212,7 @@ testLatin1EncoderError() {
0x80,
0xff,
0x100];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add(new String.fromCharCodes(data));
controller.close();
var stream = controller.stream
« no previous file with comments | « tests/standalone/io/string_decoder_test.dart ('k') | tests/standalone/io/web_socket_protocol_processor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698