| 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 "package:expect/expect.dart"; |
| 5 import "dart:async"; | 6 import "dart:async"; |
| 6 import "dart:io"; | 7 import "dart:io"; |
| 7 import "dart:isolate"; | 8 import "dart:isolate"; |
| 8 | 9 |
| 9 // Test the dart:io Link class. | 10 // Test the dart:io Link class. |
| 10 | 11 |
| 11 testCreateSync() { | 12 testCreateSync() { |
| 12 Path base = new Path(new Directory('').createTempSync().path); | 13 Path base = new Path(new Directory('').createTempSync().path); |
| 13 String link = base.append('link').toNativePath(); | 14 String link = base.append('link').toNativePath(); |
| 14 String target = base.append('target').toNativePath(); | 15 String target = base.append('target').toNativePath(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 134 } |
| 134 Future.wait(futures).then((_) { | 135 Future.wait(futures).then((_) { |
| 135 baseDir.deleteSync(recursive: true); | 136 baseDir.deleteSync(recursive: true); |
| 136 }); | 137 }); |
| 137 } | 138 } |
| 138 | 139 |
| 139 | 140 |
| 140 main() { | 141 main() { |
| 141 testCreateSync(); | 142 testCreateSync(); |
| 142 } | 143 } |
| OLD | NEW |