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

Unified Diff: tests/standalone/io/process_non_ascii_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/process_environment_test.dart ('k') | tests/standalone/io/process_pid_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_non_ascii_test.dart
diff --git a/tests/standalone/io/process_non_ascii_test.dart b/tests/standalone/io/process_non_ascii_test.dart
index f590cfff43cd44577e55a7bd2cd7aa7f5fcac120..82964e0a99114d250d3019ecb09493c4adfe410d 100644
--- a/tests/standalone/io/process_non_ascii_test.dart
+++ b/tests/standalone/io/process_non_ascii_test.dart
@@ -2,12 +2,13 @@
// 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";
main() {
- var port = new ReceivePort();
+ asyncStart();
var executable = new File(Platform.executable).fullPathSync();
var tempDir = new Directory('').createTempSync();
var nonAsciiDir = new Directory('${tempDir.path}/æøå');
@@ -30,6 +31,6 @@ main() {
.then((result) {
Expect.equals(0, result.exitCode);
tempDir.deleteSync(recursive: true);
- port.close();
+ asyncEnd();
});
}
« no previous file with comments | « tests/standalone/io/process_environment_test.dart ('k') | tests/standalone/io/process_pid_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698