| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 import 'dart:async'; |
| 6 | 7 |
| 7 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
| 8 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 9 import "package:path/path.dart"; | 10 import "package:path/path.dart"; |
| 10 | 11 |
| 11 main() { | 12 main() { |
| 12 testCreateDirectoryRecursiveSync(); | 13 testCreateDirectoryRecursiveSync(); |
| 13 testCreateLinkRecursiveSync(); | 14 testCreateLinkRecursiveSync(); |
| 14 testCreateFileRecursiveSync(); | 15 testCreateFileRecursiveSync(); |
| 15 testCreateDirectoryRecursive(); | 16 testCreateDirectoryRecursive(); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 .then((_) => expectFutureIsTrue(link.exists())) | 134 .then((_) => expectFutureIsTrue(link.exists())) |
| 134 .then((_) => expectFileSystemException( | 135 .then((_) => expectFileSystemException( |
| 135 () => link.create(temp.path, recursive: true), | 136 () => link.create(temp.path, recursive: true), |
| 136 'existing link.create')) | 137 'existing link.create')) |
| 137 .then((_) => expectFutureIsTrue(link.exists())) | 138 .then((_) => expectFutureIsTrue(link.exists())) |
| 138 | 139 |
| 139 .then((_) => asyncEnd()) | 140 .then((_) => asyncEnd()) |
| 140 .whenComplete(() => temp.delete(recursive: true)); | 141 .whenComplete(() => temp.delete(recursive: true)); |
| 141 }); | 142 }); |
| 142 } | 143 } |
| OLD | NEW |