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

Unified Diff: tests/standalone/io/directory_fuzz_test.dart

Issue 11364097: Allow Directory.create to create all missing path components. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload Created 8 years, 1 month 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
Index: tests/standalone/io/directory_fuzz_test.dart
diff --git a/tests/standalone/io/directory_fuzz_test.dart b/tests/standalone/io/directory_fuzz_test.dart
index 3aa46d478eb9d51beefdcf4616b99e4602ade2d7..625e994144f6ef5b792a8d631878be56114d2755 100644
--- a/tests/standalone/io/directory_fuzz_test.dart
+++ b/tests/standalone/io/directory_fuzz_test.dart
@@ -23,7 +23,7 @@ fuzzSyncMethods() {
doItSync(() {
// Let's be a little careful. If the directory exists we don't
// want to delete it and all its contents.
- if (!d.existsSync()) d.deleteRecursivelySync();
+ if (!d.existsSync()) d.deleteSync(recursive: true);
});
typeMapping.forEach((k2, v2) {
doItSync(() => d.renameSync(v2));
@@ -48,7 +48,7 @@ fuzzAsyncMethods() {
}));
futures.add(doItAsync(() {
return d.exists().chain((res) {
- if (!res) return d.deleteRecursively();
+ if (!res) return d.delete(recursive: true);
return new Future.immediate(true);
});
}));

Powered by Google App Engine
This is Rietveld 408576698