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

Unified Diff: tests/standalone/io/string_decoder_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
« no previous file with comments | « tests/standalone/io/stdout_stderr_test.dart ('k') | tests/standalone/io/string_transformer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/string_decoder_test.dart
diff --git a/tests/standalone/io/string_decoder_test.dart b/tests/standalone/io/string_decoder_test.dart
index 975e1ccf23b36aaaf88986c0a4ef77bbf32e956c..df808ae33f1249be49fd3cd5ad0b730143d0fbd0 100644
--- a/tests/standalone/io/string_decoder_test.dart
+++ b/tests/standalone/io/string_decoder_test.dart
@@ -8,7 +8,7 @@ import "dart:io";
void test() {
// Code point U+10FFFF is the largest code point supported by Dart.
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add([0xf0, 0x90, 0x80, 0x80]); // U+10000
controller.add([0xf4, 0x8f, 0xbf, 0xbf]); // U+10FFFF
controller.add([0xf4, 0x90, 0x80, 0x80]); // U+110000
@@ -42,7 +42,7 @@ void test() {
void testInvalid() {
void invalid(var bytes, var outputLength) {
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.add(bytes);
controller.close();
controller.stream.transform(new StringDecoder()).listen((string) {
« no previous file with comments | « tests/standalone/io/stdout_stderr_test.dart ('k') | tests/standalone/io/string_transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698