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

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

Issue 11416024: Don't require "branches" directory in git repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 /** 5 /**
6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub 6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub
7 * tests are integration tests that stage some stuff on the file system, run 7 * tests are integration tests that stage some stuff on the file system, run
8 * pub, and then validate the results. This library provides an API to build 8 * pub, and then validate the results. This library provides an API to build
9 * tests like that. 9 * tests like that.
10 */ 10 */
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 libDir(name, value) 306 libDir(name, value)
307 ]); 307 ]);
308 } 308 }
309 309
310 /** 310 /**
311 * Describes a directory for a Git package. This directory is of the form found 311 * Describes a directory for a Git package. This directory is of the form found
312 * in the repo cache of the global package cache. 312 * in the repo cache of the global package cache.
313 */ 313 */
314 DirectoryDescriptor gitPackageRepoCacheDir(String name) { 314 DirectoryDescriptor gitPackageRepoCacheDir(String name) {
315 return dir(new RegExp("$name${r'-[a-f0-9]+'}"), [ 315 return dir(new RegExp("$name${r'-[a-f0-9]+'}"), [
316 dir('branches'),
317 dir('hooks'), 316 dir('hooks'),
318 dir('info'), 317 dir('info'),
319 dir('objects'), 318 dir('objects'),
320 dir('refs') 319 dir('refs')
321 ]); 320 ]);
322 } 321 }
323 322
324 /** 323 /**
325 * Describes the `packages/` directory containing all the given [packages], 324 * Describes the `packages/` directory containing all the given [packages],
326 * which should be name/version pairs. The packages will be validated against 325 * which should be name/version pairs. The packages will be validated against
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 } 1223 }
1225 1224
1226 /** 1225 /**
1227 * Schedules a callback to be called after Pub is run with [runPub], even if it 1226 * Schedules a callback to be called after Pub is run with [runPub], even if it
1228 * fails. 1227 * fails.
1229 */ 1228 */
1230 void _scheduleCleanup(_ScheduledEvent event) { 1229 void _scheduleCleanup(_ScheduledEvent event) {
1231 if (_scheduledCleanup == null) _scheduledCleanup = []; 1230 if (_scheduledCleanup == null) _scheduledCleanup = [];
1232 _scheduledCleanup.add(event); 1231 _scheduledCleanup.add(event);
1233 } 1232 }
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