OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 6 |
7 import 'package:pub/src/exit_codes.dart' as exit_codes; | 7 import 'package:pub/src/exit_codes.dart' as exit_codes; |
8 | 8 |
9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 d.dir(appPath, [ | 58 d.dir(appPath, [ |
59 d.pubspec({ | 59 d.pubspec({ |
60 "name": "foo.bar.baz", | 60 "name": "foo.bar.baz", |
61 "version": "1.0.0" | 61 "version": "1.0.0" |
62 }), | 62 }), |
63 d.libDir("foo.bar.baz", "foo.bar.baz 1.0.0") | 63 d.libDir("foo.bar.baz", "foo.bar.baz 1.0.0") |
64 ]).create(); | 64 ]).create(); |
65 | 65 |
66 pubGet(); | 66 pubGet(); |
67 | 67 |
68 d.packagesDir({"foo.bar.baz": "1.0.0"}).validate(); | 68 d.dir(appPath, [ |
| 69 d.packagesFile({ |
| 70 "foo.bar.baz": "." |
| 71 }) |
| 72 ]).validate(); |
69 }); | 73 }); |
70 } | 74 } |
OLD | NEW |