| 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 'package:expect/expect.dart'; |
| 6 import "dart:io"; | 6 import "dart:io"; |
| 7 import "dart:isolate"; | 7 import "dart:isolate"; |
| 8 | 8 |
| 9 testJunctionTypeDelete() { | 9 testJunctionTypeDelete() { |
| 10 var temp = new Directory('').createTempSync(); | 10 var temp = new Directory('').createTempSync(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 FileSystemEntity.typeSync(x, followLinks: false)); | 74 FileSystemEntity.typeSync(x, followLinks: false)); |
| 75 Expect.throws(() => new Link(y).targetSync()); | 75 Expect.throws(() => new Link(y).targetSync()); |
| 76 | 76 |
| 77 temp.deleteSync(recursive: true); | 77 temp.deleteSync(recursive: true); |
| 78 }); | 78 }); |
| 79 }); | 79 }); |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 main() { | 83 main() { |
| 84 // Links on other platforms are tested by file_system_[async_]links_test. |
| 84 if (Platform.operatingSystem == 'windows') { | 85 if (Platform.operatingSystem == 'windows') { |
| 85 testJunctionTypeDelete(); | 86 testJunctionTypeDelete(); |
| 86 } | 87 } |
| 87 } | 88 } |
| OLD | NEW |