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 27 matching lines...) Expand all Loading... |
38 ]), | 38 ]), |
39 d.dir("bar", [ | 39 d.dir("bar", [ |
40 d.file("bar.dart", 'main() => "bar";') | 40 d.file("bar.dart", 'main() => "bar";') |
41 ]) | 41 ]) |
42 ]).validate(); | 42 ]).validate(); |
43 }); | 43 }); |
44 | 44 |
45 integration("includes dev dependency's transitive dependencies", () { | 45 integration("includes dev dependency's transitive dependencies", () { |
46 d.dir('foo', [ | 46 d.dir('foo', [ |
47 d.libDir('foo'), | 47 d.libDir('foo'), |
48 d.libPubspec('foo', '0.0.1', deps: [ | 48 d.libPubspec('foo', '0.0.1', deps: { |
49 {"path": "../bar"} | 49 "bar": {"path": "../bar"} |
50 ]) | 50 }) |
51 ]).create(); | 51 ]).create(); |
52 | 52 |
53 d.dir('bar', [ | 53 d.dir('bar', [ |
54 d.libDir('bar'), | 54 d.libDir('bar'), |
55 d.libPubspec('bar', '0.0.1') | 55 d.libPubspec('bar', '0.0.1') |
56 ]).create(); | 56 ]).create(); |
57 | 57 |
58 d.dir(appPath, [ | 58 d.dir(appPath, [ |
59 d.pubspec({ | 59 d.pubspec({ |
60 "name": "myapp", | 60 "name": "myapp", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 pubInstall(); | 105 pubInstall(); |
106 | 106 |
107 d.dir(packagesPath, [ | 107 d.dir(packagesPath, [ |
108 d.dir("foo", [ | 108 d.dir("foo", [ |
109 d.file("foo.dart", 'main() => "foo";') | 109 d.file("foo.dart", 'main() => "foo";') |
110 ]), | 110 ]), |
111 d.nothing("bar") | 111 d.nothing("bar") |
112 ]).validate(); | 112 ]).validate(); |
113 }); | 113 }); |
114 } | 114 } |
OLD | NEW |