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

Unified Diff: tests/standalone/io/directory_list_pause_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
Index: tests/standalone/io/directory_list_pause_test.dart
diff --git a/tests/standalone/io/directory_list_pause_test.dart b/tests/standalone/io/directory_list_pause_test.dart
index 081b4064eb42e00e542c10dd128e71e91655dd33..5c5bf78ead7b47645d5987cfcdc6878c3a4f0a99 100644
--- a/tests/standalone/io/directory_list_pause_test.dart
+++ b/tests/standalone/io/directory_list_pause_test.dart
@@ -2,14 +2,15 @@
// 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:io";
-import "dart:isolate";
+
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
void testPauseList() {
- var keepAlive = new ReceivePort();
+ asyncStart();
// TOTAL should be bigger the our directory listing buffer.
const int TOTAL = 128;
new Directory("").createTemp().then((d) {
@@ -37,7 +38,7 @@ void testPauseList() {
}, onDone: () {
Expect.notEquals(TOTAL, count);
Expect.isTrue(count > 0);
- d.delete(recursive: true).then((ignore) => keepAlive.close());
+ d.delete(recursive: true).then((ignore) => asyncEnd());
});
});
}
« no previous file with comments | « tests/standalone/io/directory_list_nonexistent_test.dart ('k') | tests/standalone/io/directory_non_ascii_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698