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

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

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error 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
« no previous file with comments | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
}));
« no previous file with comments | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698