Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: sdk/lib/_internal/pub/test/dev_dependency_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'descriptor.dart' as d;
6 import 'test_pub.dart';
7
8 main() {
9 initConfig();
10 integration("includes root package's dev dependencies", () {
11 d.dir('foo', [
12 d.libDir('foo'),
13 d.libPubspec('foo', '0.0.1')
14 ]).create();
15
16 d.dir('bar', [
17 d.libDir('bar'),
18 d.libPubspec('bar', '0.0.1')
19 ]).create();
20
21 d.dir(appPath, [
22 d.pubspec({
23 "name": "myapp",
24 "dev_dependencies": {
25 "foo": {"path": "../foo"},
26 "bar": {"path": "../bar"},
27 }
28 })
29 ]).create();
30
31 pubGet();
32
33 d.dir(packagesPath, [
34 d.dir("foo", [
35 d.file("foo.dart", 'main() => "foo";')
36 ]),
37 d.dir("bar", [
38 d.file("bar.dart", 'main() => "bar";')
39 ])
40 ]).validate();
41 });
42
43 integration("includes dev dependency's transitive dependencies", () {
44 d.dir('foo', [
45 d.libDir('foo'),
46 d.libPubspec('foo', '0.0.1', deps: {
47 "bar": {"path": "../bar"}
48 })
49 ]).create();
50
51 d.dir('bar', [
52 d.libDir('bar'),
53 d.libPubspec('bar', '0.0.1')
54 ]).create();
55
56 d.dir(appPath, [
57 d.pubspec({
58 "name": "myapp",
59 "dev_dependencies": {
60 "foo": {"path": "../foo"}
61 }
62 })
63 ]).create();
64
65 pubGet();
66
67 d.dir(packagesPath, [
68 d.dir("foo", [
69 d.file("foo.dart", 'main() => "foo";')
70 ]),
71 d.dir("bar", [
72 d.file("bar.dart", 'main() => "bar";')
73 ])
74 ]).validate();
75 });
76
77 integration("ignores transitive dependency's dev dependencies", () {
78 d.dir('foo', [
79 d.libDir('foo'),
80 d.pubspec({
81 "name": "foo",
82 "version": "0.0.1",
83 "dev_dependencies": {
84 "bar": {"path": "../bar"}
85 }
86 })
87 ]).create();
88
89 d.dir('bar', [
90 d.libDir('bar'),
91 d.libPubspec('bar', '0.0.1')
92 ]).create();
93
94 d.dir(appPath, [
95 d.appPubspec({
96 "foo": {"path": "../foo"}
97 })
98 ]).create();
99
100 pubGet();
101
102 d.dir(packagesPath, [
103 d.dir("foo", [
104 d.file("foo.dart", 'main() => "foo";')
105 ]),
106 d.nothing("bar")
107 ]).validate();
108 });
109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698