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

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: Remove recursive call to create(), simplifying control flow. 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
Index: tests/standalone/io/directory_test.dart
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart
index 405366653ad1bdd391b2c98b4d8c9aed2404a194..b3d8a0083d19e97eed04e2e995646a190c5ae78c 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -594,32 +594,6 @@ testCreateDirExistingFile() {
}
-testCreateRecursiveSync() {
Anders Johnsen 2013/10/30 12:23:56 These tests could be copied directory to the new f
- 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');
@@ -647,7 +621,5 @@ main() {
testCreateExisting();
testCreateDirExistingFileSync();
testCreateDirExistingFile();
- testCreateRecursive();
- testCreateRecursiveSync();
testRename();
}

Powered by Google App Engine
This is Rietveld 408576698