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

Side by Side Diff: utils/tests/pub/dev_dependency_test.dart

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow package: imports of pub. Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/descriptor/tar.dart ('k') | utils/tests/pub/directory_tree_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:pathos/path.dart' as path;
6
7 import 'descriptor.dart' as d;
8 import 'test_pub.dart';
9
10 main() {
11 initConfig();
12 integration("includes root package's dev dependencies", () {
13 d.dir('foo', [
14 d.libDir('foo'),
15 d.libPubspec('foo', '0.0.1')
16 ]).create();
17
18 d.dir('bar', [
19 d.libDir('bar'),
20 d.libPubspec('bar', '0.0.1')
21 ]).create();
22
23 d.dir(appPath, [
24 d.pubspec({
25 "name": "myapp",
26 "dev_dependencies": {
27 "foo": {"path": "../foo"},
28 "bar": {"path": "../bar"},
29 }
30 })
31 ]).create();
32
33 schedulePub(args: ["install"],
34 output: new RegExp(r"Dependencies installed!$"));
35
36 d.dir(packagesPath, [
37 d.dir("foo", [
38 d.file("foo.dart", 'main() => "foo";')
39 ]),
40 d.dir("bar", [
41 d.file("bar.dart", 'main() => "bar";')
42 ])
43 ]).validate();
44 });
45
46 integration("includes dev dependency's transitive dependencies", () {
47 d.dir('foo', [
48 d.libDir('foo'),
49 d.libPubspec('foo', '0.0.1', deps: [
50 {"path": "../bar"}
51 ])
52 ]).create();
53
54 d.dir('bar', [
55 d.libDir('bar'),
56 d.libPubspec('bar', '0.0.1')
57 ]).create();
58
59 d.dir(appPath, [
60 d.pubspec({
61 "name": "myapp",
62 "dev_dependencies": {
63 "foo": {"path": "../foo"}
64 }
65 })
66 ]).create();
67
68 schedulePub(args: ["install"],
69 output: new RegExp(r"Dependencies installed!$"));
70
71 d.dir(packagesPath, [
72 d.dir("foo", [
73 d.file("foo.dart", 'main() => "foo";')
74 ]),
75 d.dir("bar", [
76 d.file("bar.dart", 'main() => "bar";')
77 ])
78 ]).validate();
79 });
80
81 integration("ignores transitive dependency's dev dependencies", () {
82 d.dir('foo', [
83 d.libDir('foo'),
84 d.pubspec({
85 "name": "foo",
86 "version": "0.0.1",
87 "dev_dependencies": {
88 "bar": {"path": "../bar"}
89 }
90 })
91 ]).create();
92
93 d.dir('bar', [
94 d.libDir('bar'),
95 d.libPubspec('bar', '0.0.1')
96 ]).create();
97
98 d.dir(appPath, [
99 d.pubspec({
100 "name": "myapp",
101 "dependencies": {
102 "foo": {"path": "../foo"}
103 }
104 })
105 ]).create();
106
107 schedulePub(args: ["install"],
108 output: new RegExp(r"Dependencies installed!$"));
109
110 d.dir(packagesPath, [
111 d.dir("foo", [
112 d.file("foo.dart", 'main() => "foo";')
113 ]),
114 d.nothing("bar")
115 ]).validate();
116 });
117 }
OLDNEW
« no previous file with comments | « utils/tests/pub/descriptor/tar.dart ('k') | utils/tests/pub/directory_tree_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698