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

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

Issue 10383273: - Do not depend on git being installed on a machine. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #library('pub_tests'); 5 #library('pub_tests');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 8
9 #import('test_pub.dart'); 9 #import('test_pub.dart');
10 #import('../../../lib/unittest/unittest.dart'); 10 #import('../../../lib/unittest/unittest.dart');
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 file('bar.dart', 'main() => "bar";'), 136 file('bar.dart', 'main() => "bar";'),
137 ]) 137 ])
138 ]).scheduleValidate(); 138 ]).scheduleValidate();
139 139
140 runPub(args: ['install'], 140 runPub(args: ['install'],
141 output: ''' 141 output: '''
142 Dependencies installed! 142 Dependencies installed!
143 '''); 143 ''');
144 }); 144 });
145 145
146 /*
146 test('checks out a package from Git', () { 147 test('checks out a package from Git', () {
147 git('foo.git', [ 148 git('foo.git', [
148 file('foo.dart', 'main() => "foo";') 149 file('foo.dart', 'main() => "foo";')
149 ]).scheduleCreate(); 150 ]).scheduleCreate();
150 151
151 dir(appPath, [ 152 dir(appPath, [
152 file('pubspec', ''' 153 file('pubspec', '''
153 dependencies: 154 dependencies:
154 foo: 155 foo:
155 git: ../foo.git 156 git: ../foo.git
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 file('foo.dart', 'main() => "foo";') 194 file('foo.dart', 'main() => "foo";')
194 ]), 195 ]),
195 dir('bar', [ 196 dir('bar', [
196 file('bar.dart', 'main() => "bar";') 197 file('bar.dart', 'main() => "bar";')
197 ]) 198 ])
198 ]).scheduleValidate(); 199 ]).scheduleValidate();
199 200
200 runPub(args: ['install'], 201 runPub(args: ['install'],
201 output: const RegExp("Dependencies installed!\$")); 202 output: const RegExp("Dependencies installed!\$"));
202 }); 203 });
204 */
203 } 205 }
204 206
205 versionCommand() { 207 versionCommand() {
206 test('displays the current version', () => 208 test('displays the current version', () =>
207 runPub(args: ['version'], output: VERSION_STRING)); 209 runPub(args: ['version'], output: VERSION_STRING));
208 } 210 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698