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

Unified Diff: tests/standalone/io/file_stat_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/file_stat_test.dart
diff --git a/tests/standalone/io/file_stat_test.dart b/tests/standalone/io/file_stat_test.dart
index 7b3e33194f718efbb91ac754d0f548d8374c4f1a..afd1b67a0adaf9b0f4c7e5e45985847338ab44eb 100644
--- a/tests/standalone/io/file_stat_test.dart
+++ b/tests/standalone/io/file_stat_test.dart
@@ -4,11 +4,12 @@
//
// Dart test program for testing dart:io FileSystemEntity.Stat().
-import "package:expect/expect.dart";
-import "package:path/path.dart";
import 'dart:async';
import 'dart:io';
-import 'dart:isolate';
+
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
+import "package:path/path.dart";
void testStat() {
Directory directory = new Directory("").createTempSync();
@@ -119,7 +120,7 @@ Future testStatAsync() {
void main() {
- ReceivePort keepAlive = new ReceivePort();
+ asyncStart();
testStat();
- testStatAsync().then((_) => keepAlive.close());
+ testStatAsync().then((_) => asyncEnd());
}
« no previous file with comments | « tests/standalone/io/file_output_stream_test.dart ('k') | tests/standalone/io/file_system_async_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698