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

Unified Diff: tests/standalone/io/directory_error_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_error_test.dart
diff --git a/tests/standalone/io/directory_error_test.dart b/tests/standalone/io/directory_error_test.dart
index 96eaf324f3cd07414160950a47a155cb02ecd8ad..cf90f91f149fff0ff87d63d5699869816560efb3 100644
--- a/tests/standalone/io/directory_error_test.dart
+++ b/tests/standalone/io/directory_error_test.dart
@@ -137,10 +137,10 @@ bool checkDeleteRecursivelyNonExistentFileException(e) {
void testDeleteRecursivelyNonExistent(Directory temp, Function done) {
Directory nonExistent = new Directory("${temp.path}/nonExistent");
- Expect.throws(() => nonExistent.deleteRecursivelySync(),
+ Expect.throws(() => nonExistent.deleteSync(recursive: true),
(e) => checkDeleteRecursivelyNonExistentFileException(e));
- nonExistent.deleteRecursively().handleException((e) {
+ nonExistent.delete(recursive: true).handleException((e) {
checkDeleteRecursivelyNonExistentFileException(e);
done();
return true;
@@ -222,7 +222,7 @@ testRenameOverwriteFile(Directory temp, Function done) {
renameDone.then((ignore) => Expect.fail('rename dir overwrite file'));
renameDone.handleException((e) {
Expect.isTrue(e is DirectoryIOException);
- temp1.deleteRecursivelySync();
+ temp1.deleteSync(recursive: true);
done();
return true;
});
@@ -237,7 +237,7 @@ void runTest(Function test) {
ReceivePort p = new ReceivePort();
p.receive((x,y) {
p.close();
- temp.deleteRecursivelySync();
+ temp.deleteSync(recursive: true);
});
// Run the test.

Powered by Google App Engine
This is Rietveld 408576698