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

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

Issue 9622001: Add the ability to get the current directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows Created 8 years, 9 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: tests/standalone/src/io/DirectoryTest.dart
diff --git a/tests/standalone/src/io/DirectoryTest.dart b/tests/standalone/src/io/DirectoryTest.dart
index ad8c7c92529eb7e3d32936e0649fad102ae705b9..83f22afdb64bbf0b486c9f28eef0ede6d9203f9c 100644
--- a/tests/standalone/src/io/DirectoryTest.dart
+++ b/tests/standalone/src/io/DirectoryTest.dart
@@ -353,6 +353,13 @@ class DirectoryTest {
});
}
+ static void testCurrent() {
+ Directory current = new Directory.current();
+ if (new Platform().operatingSystem() != "windows") {
+ Expect.equals("/", current.path.substring(0, 1));
Bill Hesse 2012/03/08 11:26:34 Why can't we test that Directory.current() is the
+ }
+ }
+
static void testMain() {
testListing();
testListNonExistent();
@@ -365,6 +372,7 @@ class DirectoryTest {
testExistsCreateDeleteSync();
testCreateTemp();
testCreateDeleteTemp();
+ testCurrent();
}
}
« 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