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

Unified Diff: runtime/tests/dart/src/DirectoryTest.dart

Issue 8244001: Clean up directory listing interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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
« runtime/bin/directory.dart ('K') | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« runtime/bin/directory.dart ('K') | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698