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

Unified Diff: tests/standalone/io/directory_invalid_arguments_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/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_invalid_arguments_test.dart
diff --git a/tests/standalone/io/directory_invalid_arguments_test.dart b/tests/standalone/io/directory_invalid_arguments_test.dart
index c150369926878cd19238d350f1d17c13274bc839..9d01f2f1c4c0a8ddf2f41e93d9ee098bbfeeb0ce 100644
--- a/tests/standalone/io/directory_invalid_arguments_test.dart
+++ b/tests/standalone/io/directory_invalid_arguments_test.dart
@@ -7,15 +7,15 @@
class DirectoryInvalidArgumentsTest {
static void testFailingList(Directory d, var recursive) {
int errors = 0;
- d.onError = (error) {
+ var lister = d.list(recursive);
+ lister.onError = (error) {
errors += 1;
};
- d.onDone = (completed) {
+ lister.onDone = (completed) {
Expect.equals(1, errors);
Expect.isFalse(completed);
};
Expect.equals(0, errors);
- d.list(recursive);
}
static void testInvalidArguments() {
« no previous file with comments | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698