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

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

Issue 23886004: Update dart:io tests to use asyncStart/asyncEnd (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 3 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/raw_socket_typed_data_test.dart ('k') | tests/standalone/io/regress_7191_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/regress_10026_test.dart
diff --git a/tests/standalone/io/regress_10026_test.dart b/tests/standalone/io/regress_10026_test.dart
index 1b7644c8aadbeed3dd926c368024a13bcedc426e..568a91c5bc805a903f0346848f6daa1184585006 100644
--- a/tests/standalone/io/regress_10026_test.dart
+++ b/tests/standalone/io/regress_10026_test.dart
@@ -2,15 +2,16 @@
// 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 "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
void testZLibInflate_regress10026() {
test(data, expect) {
- var port = new ReceivePort();
+ asyncStart();
var controller = new StreamController(sync: true);
controller.stream
.transform(ZLIB.decoder)
@@ -21,7 +22,7 @@ void testZLibInflate_regress10026() {
})
.then((out) {
Expect.equals(out.toString(), expect);
- port.close();
+ asyncEnd();
});
controller.add(data);
controller.close();
« no previous file with comments | « tests/standalone/io/raw_socket_typed_data_test.dart ('k') | tests/standalone/io/regress_7191_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698