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 import 'dart:convert'; | 5 import 'dart:convert'; |
6 | 6 |
7 import 'descriptor.dart' as d; | 7 import 'descriptor.dart' as d; |
8 import 'test_pub.dart'; | 8 import 'test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 'name': 'foo' | 53 'name': 'foo' |
54 } | 54 } |
55 } | 55 } |
56 } | 56 } |
57 })) | 57 })) |
58 ]).create(); | 58 ]).create(); |
59 | 59 |
60 pubCommand(command); | 60 pubCommand(command); |
61 | 61 |
62 // Should upgrade to the new one. | 62 // Should upgrade to the new one. |
63 d.dir(packagesPath, [ | 63 d.appPackagesFile({ |
64 d.dir("foo", [ | 64 "foo": "../foo" |
65 d.file("foo.dart", 'main() => "foo";') | 65 }).validate(); |
66 ]) | |
67 ]).validate(); | |
68 }); | 66 }); |
69 }); | 67 }); |
70 } | 68 } |
OLD | NEW |