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

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

Issue 52363002: dart:io | Add 'recursive' flag to File.create and Link.create. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Indentation. Created 7 years, 2 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
« no previous file with comments | « tests/standalone/io/create_recursive_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_test.dart
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart
index d871fd6fa40c3caabcc6709aecab808eab2d3a5c..d06c77f4f8b8e5494b888b323256237f0ed6b31f 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -595,32 +595,6 @@ testCreateDirExistingFile() {
}
-testCreateRecursiveSync() {
- var temp = Directory.systemTemp.createTempSync('directory_test');
- var d = new Directory('${temp.path}/a/b/c');
- d.createSync(recursive: true);
- Expect.isTrue(new Directory('${temp.path}/a').existsSync());
- Expect.isTrue(new Directory('${temp.path}/a/b').existsSync());
- Expect.isTrue(new Directory('${temp.path}/a/b/c').existsSync());
- temp.deleteSync(recursive: true);
-}
-
-
-testCreateRecursive() {
- asyncStart();
- Directory.systemTemp.createTemp('dart_directory').then((temp) {
- var d = new Directory('${temp.path}/a/b/c');
- d.create(recursive: true).then((_) {
- Expect.isTrue(new Directory('${temp.path}/a').existsSync());
- Expect.isTrue(new Directory('${temp.path}/a/b').existsSync());
- Expect.isTrue(new Directory('${temp.path}/a/b/c').existsSync());
- temp.deleteSync(recursive: true);
- asyncEnd();
- });
- });
-}
-
-
testRename() {
var temp1 = Directory.systemTemp.createTempSync('directory_test');
var temp2 = Directory.systemTemp.createTempSync('directory_test');
@@ -648,7 +622,5 @@ main() {
testCreateExisting();
testCreateDirExistingFileSync();
testCreateDirExistingFile();
- testCreateRecursive();
- testCreateRecursiveSync();
testRename();
}
« no previous file with comments | « tests/standalone/io/create_recursive_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698