| 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:pathos/path.dart' as path; | 5 import 'package:pathos/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 12 matching lines...) Expand all Loading... |
| 23 d.dir(appPath, [ | 23 d.dir(appPath, [ |
| 24 d.pubspec({ | 24 d.pubspec({ |
| 25 "name": "myapp", | 25 "name": "myapp", |
| 26 "dev_dependencies": { | 26 "dev_dependencies": { |
| 27 "foo": {"path": "../foo"}, | 27 "foo": {"path": "../foo"}, |
| 28 "bar": {"path": "../bar"}, | 28 "bar": {"path": "../bar"}, |
| 29 } | 29 } |
| 30 }) | 30 }) |
| 31 ]).create(); | 31 ]).create(); |
| 32 | 32 |
| 33 schedulePub(args: ["install"], | 33 pubInstall(); |
| 34 output: new RegExp(r"Dependencies installed!$")); | |
| 35 | 34 |
| 36 d.dir(packagesPath, [ | 35 d.dir(packagesPath, [ |
| 37 d.dir("foo", [ | 36 d.dir("foo", [ |
| 38 d.file("foo.dart", 'main() => "foo";') | 37 d.file("foo.dart", 'main() => "foo";') |
| 39 ]), | 38 ]), |
| 40 d.dir("bar", [ | 39 d.dir("bar", [ |
| 41 d.file("bar.dart", 'main() => "bar";') | 40 d.file("bar.dart", 'main() => "bar";') |
| 42 ]) | 41 ]) |
| 43 ]).validate(); | 42 ]).validate(); |
| 44 }); | 43 }); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 58 | 57 |
| 59 d.dir(appPath, [ | 58 d.dir(appPath, [ |
| 60 d.pubspec({ | 59 d.pubspec({ |
| 61 "name": "myapp", | 60 "name": "myapp", |
| 62 "dev_dependencies": { | 61 "dev_dependencies": { |
| 63 "foo": {"path": "../foo"} | 62 "foo": {"path": "../foo"} |
| 64 } | 63 } |
| 65 }) | 64 }) |
| 66 ]).create(); | 65 ]).create(); |
| 67 | 66 |
| 68 schedulePub(args: ["install"], | 67 pubInstall(); |
| 69 output: new RegExp(r"Dependencies installed!$")); | |
| 70 | 68 |
| 71 d.dir(packagesPath, [ | 69 d.dir(packagesPath, [ |
| 72 d.dir("foo", [ | 70 d.dir("foo", [ |
| 73 d.file("foo.dart", 'main() => "foo";') | 71 d.file("foo.dart", 'main() => "foo";') |
| 74 ]), | 72 ]), |
| 75 d.dir("bar", [ | 73 d.dir("bar", [ |
| 76 d.file("bar.dart", 'main() => "bar";') | 74 d.file("bar.dart", 'main() => "bar";') |
| 77 ]) | 75 ]) |
| 78 ]).validate(); | 76 ]).validate(); |
| 79 }); | 77 }); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 97 | 95 |
| 98 d.dir(appPath, [ | 96 d.dir(appPath, [ |
| 99 d.pubspec({ | 97 d.pubspec({ |
| 100 "name": "myapp", | 98 "name": "myapp", |
| 101 "dependencies": { | 99 "dependencies": { |
| 102 "foo": {"path": "../foo"} | 100 "foo": {"path": "../foo"} |
| 103 } | 101 } |
| 104 }) | 102 }) |
| 105 ]).create(); | 103 ]).create(); |
| 106 | 104 |
| 107 schedulePub(args: ["install"], | 105 pubInstall(); |
| 108 output: new RegExp(r"Dependencies installed!$")); | |
| 109 | 106 |
| 110 d.dir(packagesPath, [ | 107 d.dir(packagesPath, [ |
| 111 d.dir("foo", [ | 108 d.dir("foo", [ |
| 112 d.file("foo.dart", 'main() => "foo";') | 109 d.file("foo.dart", 'main() => "foo";') |
| 113 ]), | 110 ]), |
| 114 d.nothing("bar") | 111 d.nothing("bar") |
| 115 ]).validate(); | 112 ]).validate(); |
| 116 }); | 113 }); |
| 117 } | 114 } |
| OLD | NEW |