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

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

Issue 8277033: Add exists, create and delete to directory implementation on Linux and Mac. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Windows build. 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
« no previous file with comments | « 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: tests/standalone/src/DirectoryTest.dart
diff --git a/tests/standalone/src/DirectoryTest.dart b/tests/standalone/src/DirectoryTest.dart
index ddf5b1bfd267fa80b69eddab15457e7eeb810441..3892cd029556c878d3503eb23d67a196d2312a9a 100644
--- a/tests/standalone/src/DirectoryTest.dart
+++ b/tests/standalone/src/DirectoryTest.dart
@@ -33,8 +33,19 @@ class DirectoryTest {
Expect.isFalse(listedSomething);
}
+ static void testExistsCreateDelete() {
+ // TODO(ager): This should be creating temporary directories.
+ Directory d = new Directory("____DIRECTORY_TEST_DIRECTORY____");
+ Expect.isFalse(d.exists());
+ d.create();
+ Expect.isTrue(d.exists());
+ d.delete();
+ Expect.isFalse(d.exists());
+ }
+
static void testMain() {
testListing();
+ testExistsCreateDelete();
}
}
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698