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

Unified Diff: tests/standalone/io/delete_symlink_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/async_catch_errors_test.dart ('k') | tests/standalone/io/directory_chdir_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/delete_symlink_test.dart
diff --git a/tests/standalone/io/delete_symlink_test.dart b/tests/standalone/io/delete_symlink_test.dart
index ad10a48ffd3bfa4d8222ce5d4df4f7356f71d999..b5ca0b5d4bf14d8ded4faf299ceb8f663174a327 100644
--- a/tests/standalone/io/delete_symlink_test.dart
+++ b/tests/standalone/io/delete_symlink_test.dart
@@ -2,9 +2,10 @@
// 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:io';
-import 'dart:isolate';
+
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
void main() {
// temp/
@@ -33,7 +34,7 @@ void main() {
args = ["/c", "mklink", "/j", "${d.path}\\b\\a_link", "${d.path}\\a"];
}
- var keepAlive = new ReceivePort();
+ asyncStart();
Process.run(cmd, args).then((_) {
// Delete the directory containing the junction.
@@ -46,6 +47,6 @@ void main() {
d.deleteSync(recursive: true);
// Terminate now that we are done with everything.
- keepAlive.close();
+ asyncEnd();
});
}
« no previous file with comments | « tests/standalone/io/async_catch_errors_test.dart ('k') | tests/standalone/io/directory_chdir_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698