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

Unified Diff: tests/standalone/io/many_directory_operations_test.dart

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding stable test binaries Created 8 years, 7 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_test.dart ('k') | tests/standalone/io/many_file_operations_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/many_directory_operations_test.dart
diff --git a/tests/standalone/io/many_directory_operations_test.dart b/tests/standalone/io/many_directory_operations_test.dart
index d13c7f6725b404486242ddcdba936882246065cb..4470eaa4ad5024a4686ba2ef79b61a6df59fc28a 100644
--- a/tests/standalone/io/many_directory_operations_test.dart
+++ b/tests/standalone/io/many_directory_operations_test.dart
@@ -8,7 +8,6 @@
main() {
for (var i = 0; i < 10000; i++) {
- Directory d = new Directory(".");
- d.exists((result) => null);
+ new Directory(".").exists().then((result) => null);
}
}
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/many_file_operations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698