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:io"; | 6 import "dart:io"; |
6 import "dart:isolate"; | 7 import "dart:isolate"; |
7 | 8 |
8 testJunctionTypeDelete() { | 9 testJunctionTypeDelete() { |
9 var temp = new Directory('').createTempSync(); | 10 var temp = new Directory('').createTempSync(); |
10 var x = '${temp.path}${Platform.pathSeparator}x'; | 11 var x = '${temp.path}${Platform.pathSeparator}x'; |
11 var y = '${temp.path}${Platform.pathSeparator}y'; | 12 var y = '${temp.path}${Platform.pathSeparator}y'; |
12 | 13 |
13 new Directory(x).createSync(); | 14 new Directory(x).createSync(); |
14 new Link(y).create(x).then((_) { | 15 new Link(y).create(x).then((_) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 }); | 78 }); |
78 }); | 79 }); |
79 } | 80 } |
80 | 81 |
81 | 82 |
82 main() { | 83 main() { |
83 if (Platform.operatingSystem == 'windows') { | 84 if (Platform.operatingSystem == 'windows') { |
84 testJunctionTypeDelete(); | 85 testJunctionTypeDelete(); |
85 } | 86 } |
86 } | 87 } |
OLD | NEW |