| 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:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 }) | 88 }) |
| 89 ]).create(); | 89 ]).create(); |
| 90 | 90 |
| 91 d.dir('bar', [ | 91 d.dir('bar', [ |
| 92 d.libDir('bar'), | 92 d.libDir('bar'), |
| 93 d.libPubspec('bar', '0.0.1') | 93 d.libPubspec('bar', '0.0.1') |
| 94 ]).create(); | 94 ]).create(); |
| 95 | 95 |
| 96 d.dir(appPath, [ | 96 d.dir(appPath, [ |
| 97 d.pubspec({ | 97 d.appPubspec({ |
| 98 "name": "myapp", | 98 "foo": {"path": "../foo"} |
| 99 "dependencies": { | |
| 100 "foo": {"path": "../foo"} | |
| 101 } | |
| 102 }) | 99 }) |
| 103 ]).create(); | 100 ]).create(); |
| 104 | 101 |
| 105 pubInstall(); | 102 pubInstall(); |
| 106 | 103 |
| 107 d.dir(packagesPath, [ | 104 d.dir(packagesPath, [ |
| 108 d.dir("foo", [ | 105 d.dir("foo", [ |
| 109 d.file("foo.dart", 'main() => "foo";') | 106 d.file("foo.dart", 'main() => "foo";') |
| 110 ]), | 107 ]), |
| 111 d.nothing("bar") | 108 d.nothing("bar") |
| 112 ]).validate(); | 109 ]).validate(); |
| 113 }); | 110 }); |
| 114 } | 111 } |
| OLD | NEW |