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

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

Issue 19503006: Use appPubspec() in more places. (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
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/hosted/fail_gracefully_on_url_resolve_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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 }) 88 })
89 ]).create(); 89 ]).create();
90 90
91 d.dir('bar', [ 91 d.dir('bar', [
92 d.libDir('bar'), 92 d.libDir('bar'),
93 d.libPubspec('bar', '0.0.1') 93 d.libPubspec('bar', '0.0.1')
94 ]).create(); 94 ]).create();
95 95
96 d.dir(appPath, [ 96 d.dir(appPath, [
97 d.pubspec({ 97 d.appPubspec({
98 "name": "myapp", 98 "foo": {"path": "../foo"}
99 "dependencies": {
100 "foo": {"path": "../foo"}
101 }
102 }) 99 })
103 ]).create(); 100 ]).create();
104 101
105 pubInstall(); 102 pubInstall();
106 103
107 d.dir(packagesPath, [ 104 d.dir(packagesPath, [
108 d.dir("foo", [ 105 d.dir("foo", [
109 d.file("foo.dart", 'main() => "foo";') 106 d.file("foo.dart", 'main() => "foo";')
110 ]), 107 ]),
111 d.nothing("bar") 108 d.nothing("bar")
112 ]).validate(); 109 ]).validate();
113 }); 110 });
114 } 111 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/hosted/fail_gracefully_on_url_resolve_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698