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() { |