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

Unified Diff: tests/standalone/io/directory_chdir_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/delete_symlink_test.dart ('k') | tests/standalone/io/directory_create_race_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_chdir_test.dart
diff --git a/tests/standalone/io/directory_chdir_test.dart b/tests/standalone/io/directory_chdir_test.dart
index 0805e3a58ad4aecd813bce93c6b11efc069b67a5..e1c9a1d14ad24a4a71c3c503a904a10478f4cf8a 100644
--- a/tests/standalone/io/directory_chdir_test.dart
+++ b/tests/standalone/io/directory_chdir_test.dart
@@ -6,12 +6,12 @@
import "dart:io";
-import "dart:isolate";
+import "package:async_helper/async_helper.dart";
import "package:expect/expect.dart";
testChangeDirectory() {
- var port = new ReceivePort();
+ asyncStart();
new Directory("").createTemp().then((temp) {
var initialCurrent = Directory.current;
Directory.current = temp;
@@ -28,7 +28,7 @@ testChangeDirectory() {
Expect.isTrue(new File("222/333").existsSync());
Directory.current = initialCurrent;
temp.deleteSync(recursive: true);
- port.close();
+ asyncEnd();
});
}
« no previous file with comments | « tests/standalone/io/delete_symlink_test.dart ('k') | tests/standalone/io/directory_create_race_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698