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

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

Issue 937243002: Revert "Revert "Use native async/await support in pub."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
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', [d.libDir('foo'), d.libPubspec('foo', '0.0.1')]).create();
12
13 d.dir('bar', [d.libDir('bar'), d.libPubspec('bar', '0.0.1')]).create();
14
15 d.dir(appPath, [d.pubspec({
16 "name": "myapp",
17 "dev_dependencies": {
18 "foo": {
19 "path": "../foo"
20 },
21 "bar": {
22 "path": "../bar"
23 },
24 }
25 })]).create();
26
27 pubGet();
28
29 d.dir(
30 packagesPath,
31 [
32 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
33 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')])]).validate();
34 });
35
36 integration("includes dev dependency's transitive dependencies", () {
37 d.dir('foo', [d.libDir('foo'), d.libPubspec('foo', '0.0.1', deps: {
38 "bar": {
39 "path": "../bar"
40 }
41 })]).create();
42
43 d.dir('bar', [d.libDir('bar'), d.libPubspec('bar', '0.0.1')]).create();
44
45 d.dir(appPath, [d.pubspec({
46 "name": "myapp",
47 "dev_dependencies": {
48 "foo": {
49 "path": "../foo"
50 }
51 }
52 })]).create();
53
54 pubGet();
55
56 d.dir(
57 packagesPath,
58 [
59 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
60 d.dir("bar", [d.file("bar.dart", 'main() => "bar";')])]).validate();
61 });
62
63 integration("ignores transitive dependency's dev dependencies", () {
64 d.dir('foo', [d.libDir('foo'), d.pubspec({
65 "name": "foo",
66 "version": "0.0.1",
67 "dev_dependencies": {
68 "bar": {
69 "path": "../bar"
70 }
71 }
72 })]).create();
73
74 d.dir('bar', [d.libDir('bar'), d.libPubspec('bar', '0.0.1')]).create();
75
76 d.dir(appPath, [d.appPubspec({
77 "foo": {
78 "path": "../foo"
79 }
80 })]).create();
81
82 pubGet();
83
84 d.dir(
85 packagesPath,
86 [
87 d.dir("foo", [d.file("foo.dart", 'main() => "foo";')]),
88 d.nothing("bar")]).validate();
89 });
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698