| Index: runtime/tests/dart/src/DirectoryTest.dart
|
| diff --git a/runtime/tests/dart/src/DirectoryTest.dart b/runtime/tests/dart/src/DirectoryTest.dart
|
| index c72547782e92cacc75b483e6f8f7cc7d428ce6db..ddf5b1bfd267fa80b69eddab15457e7eeb810441 100644
|
| --- a/runtime/tests/dart/src/DirectoryTest.dart
|
| +++ b/runtime/tests/dart/src/DirectoryTest.dart
|
| @@ -7,7 +7,7 @@
|
| class DirectoryTest {
|
| static void testListing() {
|
| bool listedSomething = false;
|
| - Directory directory = new Directory.open(".");
|
| + Directory directory = new Directory(".");
|
|
|
| directory.setDirHandler((dir) {
|
| listedSomething = true;
|
| @@ -20,11 +20,10 @@ class DirectoryTest {
|
| directory.setDoneHandler((completed) {
|
| Expect.isTrue(completed, "directory listing did not complete");
|
| Expect.isTrue(listedSomething, "empty directory");
|
| - directory.close();
|
| });
|
|
|
| - directory.setDirErrorHandler((dir) {
|
| - Expect.fail("error listing directory");
|
| + directory.setErrorHandler((error) {
|
| + Expect.fail("error listing directory: $error");
|
| });
|
|
|
| directory.list();
|
|
|