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

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

Issue 19592015: Get rid of hokey dependencyMapList stuff. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698