OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2012, 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 library pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import 'dart:io'; | |
8 import 'dart:json' as json; | 7 import 'dart:json' as json; |
9 | 8 |
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 initConfig(); | 13 initConfig(); |
15 | 14 |
16 forBothPubInstallAndUpdate((command) { | 15 forBothPubInstallAndUpdate((command) { |
17 integration('fails gracefully on a dependency from an unknown source', () { | 16 integration('fails gracefully on a dependency from an unknown source', () { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 65 |
67 // Should update to the new one. | 66 // Should update to the new one. |
68 d.dir(packagesPath, [ | 67 d.dir(packagesPath, [ |
69 d.dir("foo", [ | 68 d.dir("foo", [ |
70 d.file("foo.dart", 'main() => "foo";') | 69 d.file("foo.dart", 'main() => "foo";') |
71 ]) | 70 ]) |
72 ]).validate(); | 71 ]).validate(); |
73 }); | 72 }); |
74 }); | 73 }); |
75 } | 74 } |
OLD | NEW |