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

Unified Diff: tests/standalone/io/file_system_async_links_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/file_stat_test.dart ('k') | tests/standalone/io/file_system_links_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_system_async_links_test.dart
diff --git a/tests/standalone/io/file_system_async_links_test.dart b/tests/standalone/io/file_system_async_links_test.dart
index 25f07a99c5b467b13b0958aa3ddd45b9682e063b..f958bfadbd061f5ce38c49179a7f7d5b92b5da63 100644
--- a/tests/standalone/io/file_system_async_links_test.dart
+++ b/tests/standalone/io/file_system_async_links_test.dart
@@ -3,10 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
-import "package:expect/expect.dart";
import "dart:io";
-import "dart:isolate";
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
class FutureExpect {
static Future isTrue(Future<bool> result) =>
@@ -224,7 +224,7 @@ Future testDirectoryListingBrokenLink() {
main() {
// Links on Windows are tested by windows_file_system_[async_]links_test.
if (Platform.operatingSystem != 'windows') {
- ReceivePort keepAlive = new ReceivePort();
+ asyncStart();
testFileExistsCreate()
.then((_) => testFileDelete())
.then((_) => testFileWriteRead())
@@ -232,6 +232,6 @@ main() {
.then((_) => testDirectoryDelete())
.then((_) => testDirectoryListing())
.then((_) => testDirectoryListingBrokenLink())
- .then((_) => keepAlive.close());
+ .then((_) => asyncEnd());
}
}
« no previous file with comments | « tests/standalone/io/file_stat_test.dart ('k') | tests/standalone/io/file_system_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698