| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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 d.file. | 3 // BSD-style license that can be found in the LICENSE d.file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 8 | 8 |
| 9 import '../../../lib/src/exit_codes.dart' as exit_codes; | |
| 10 import '../../descriptor.dart' as d; | 9 import '../../descriptor.dart' as d; |
| 11 import '../../test_pub.dart'; | 10 import '../../test_pub.dart'; |
| 12 | 11 |
| 13 main() { | 12 main() { |
| 14 // Pub uses NTFS junction points to create links in the packages directory. | 13 // Pub uses NTFS junction points to create links in the packages directory. |
| 15 // These (unlike the symlinks that are supported in Vista and later) do not | 14 // These (unlike the symlinks that are supported in Vista and later) do not |
| 16 // support relative paths. So this test, by design, will not pass on Windows. | 15 // support relative paths. So this test, by design, will not pass on Windows. |
| 17 // So just skip it. | 16 // So just skip it. |
| 18 if (Platform.operatingSystem == "windows") return; | 17 if (Platform.operatingSystem == "windows") return; |
| 19 | 18 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 | 41 |
| 43 d.dir("moved", [ | 42 d.dir("moved", [ |
| 44 d.dir(packagesPath, [ | 43 d.dir(packagesPath, [ |
| 45 d.dir("foo", [ | 44 d.dir("foo", [ |
| 46 d.file("foo.dart", 'main() => "foo";') | 45 d.file("foo.dart", 'main() => "foo";') |
| 47 ]) | 46 ]) |
| 48 ]) | 47 ]) |
| 49 ]).validate(); | 48 ]).validate(); |
| 50 }); | 49 }); |
| 51 } | 50 } |
| OLD | NEW |