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. |