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

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

Issue 10981031: Convert raw strings in pub (and apidoc) to new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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) 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('../../../pkg/unittest/unittest.dart'); 10 #import('../../../pkg/unittest/unittest.dart');
11 11
12 main() { 12 main() {
13 test('checks out a package from Git', () { 13 test('checks out a package from Git', () {
14 ensureGit(); 14 ensureGit();
15 15
16 git('foo.git', [ 16 git('foo.git', [
17 libDir('foo'), 17 libDir('foo'),
18 libPubspec('foo', '1.0.0') 18 libPubspec('foo', '1.0.0')
19 ]).scheduleCreate(); 19 ]).scheduleCreate();
20 20
21 appDir([{"git": "../foo.git"}]).scheduleCreate(); 21 appDir([{"git": "../foo.git"}]).scheduleCreate();
22 22
23 schedulePub(args: ['install'], 23 schedulePub(args: ['install'],
24 output: const RegExp(@"Dependencies installed!$")); 24 output: const RegExp(r"Dependencies installed!$"));
25 25
26 dir(cachePath, [ 26 dir(cachePath, [
27 dir('git', [ 27 dir('git', [
28 dir('cache', [gitPackageRepoCacheDir('foo')]), 28 dir('cache', [gitPackageRepoCacheDir('foo')]),
29 gitPackageRevisionCacheDir('foo') 29 gitPackageRevisionCacheDir('foo')
30 ]) 30 ])
31 ]).scheduleValidate(); 31 ]).scheduleValidate();
32 32
33 dir(packagesPath, [ 33 dir(packagesPath, [
34 dir('foo', [ 34 dir('foo', [
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 dir(appPath, [ 92 dir(appPath, [
93 pubspec({ 93 pubspec({
94 "name": "myapp", 94 "name": "myapp",
95 "dependencies": { 95 "dependencies": {
96 "weirdname": {"git": "../foo.git"} 96 "weirdname": {"git": "../foo.git"}
97 } 97 }
98 }) 98 })
99 ]).scheduleCreate(); 99 ]).scheduleCreate();
100 100
101 schedulePub(args: ['install'], 101 schedulePub(args: ['install'],
102 output: const RegExp(@"Dependencies installed!$")); 102 output: const RegExp(r"Dependencies installed!$"));
103 103
104 dir(packagesPath, [ 104 dir(packagesPath, [
105 dir('weirdname', [ 105 dir('weirdname', [
106 file('weirdname.dart', 'main() => "weirdname";') 106 file('weirdname.dart', 'main() => "weirdname";')
107 ]) 107 ])
108 ]).scheduleValidate(); 108 ]).scheduleValidate();
109 109
110 run(); 110 run();
111 }); 111 });
112 112
113 test('requires the dependency to have a pubspec', () { 113 test('requires the dependency to have a pubspec', () {
114 ensureGit(); 114 ensureGit();
115 115
116 git('foo.git', [ 116 git('foo.git', [
117 libDir('foo') 117 libDir('foo')
118 ]).scheduleCreate(); 118 ]).scheduleCreate();
119 119
120 appDir([{"git": "../foo.git"}]).scheduleCreate(); 120 appDir([{"git": "../foo.git"}]).scheduleCreate();
121 121
122 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is 122 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is
123 // fixed. 123 // fixed.
124 schedulePub(args: ['install'], 124 schedulePub(args: ['install'],
125 error: const RegExp(@'^Package "foo" doesn' @"'" 't have a ' 125 error: const RegExp('^Package "foo" doesn\'t have a '
nweiz 2012/09/26 00:49:52 Removing the escaping here is inconsistent with th
Bob Nystrom 2012/09/26 01:14:42 Done.
126 'pubspec.yaml file.'), 126 'pubspec.yaml file.'),
nweiz 2012/09/26 00:49:52 The '.'s here should be escaped.
Bob Nystrom 2012/09/26 01:14:42 Done.
127 exitCode: 1); 127 exitCode: 1);
128 128
129 run(); 129 run();
130 }); 130 });
131 131
132 test('requires the dependency to have a pubspec with a name field', () { 132 test('requires the dependency to have a pubspec with a name field', () {
133 ensureGit(); 133 ensureGit();
134 134
135 git('foo.git', [ 135 git('foo.git', [
136 libDir('foo'), 136 libDir('foo'),
137 pubspec({}) 137 pubspec({})
138 ]).scheduleCreate(); 138 ]).scheduleCreate();
139 139
140 appDir([{"git": "../foo.git"}]).scheduleCreate(); 140 appDir([{"git": "../foo.git"}]).scheduleCreate();
141 141
142 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is 142 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is
143 // fixed. 143 // fixed.
144 schedulePub(args: ['install'], 144 schedulePub(args: ['install'],
145 error: const RegExp(@'^Package "foo"' @"'" 's pubspec.yaml file is ' 145 error: const RegExp(r'^Package "foo"' r"'" 's pubspec.yaml file is '
146 @'missing the required "name" field \(e\.g\. "name: foo"\)\.'), 146 r'missing the required "name" field \(e\.g\. "name: foo"\)\.'),
147 exitCode: 1); 147 exitCode: 1);
148 148
149 run(); 149 run();
150 }); 150 });
151 151
152 test('requires the dependency name to match the remote pubspec name', () { 152 test('requires the dependency name to match the remote pubspec name', () {
153 ensureGit(); 153 ensureGit();
154 154
155 git('foo.git', [ 155 git('foo.git', [
156 libDir('foo'), 156 libDir('foo'),
157 libPubspec('foo', '1.0.0') 157 libPubspec('foo', '1.0.0')
158 ]).scheduleCreate(); 158 ]).scheduleCreate();
159 159
160 dir(appPath, [ 160 dir(appPath, [
161 pubspec({ 161 pubspec({
162 "name": "myapp", 162 "name": "myapp",
163 "dependencies": { 163 "dependencies": {
164 "weirdname": {"git": "../foo.git"} 164 "weirdname": {"git": "../foo.git"}
165 } 165 }
166 }) 166 })
167 ]).scheduleCreate(); 167 ]).scheduleCreate();
168 168
169 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is 169 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is
170 // fixed. 170 // fixed.
171 schedulePub(args: ['install'], 171 schedulePub(args: ['install'],
172 error: const RegExp(@'^The name you specified for your dependency, ' 172 error: const RegExp(r'^The name you specified for your dependency, '
173 @'"weirdname", doesn' @"'" @'t match the name "foo" in its ' 173 r'"weirdname", doesn' r"'" r't match the name "foo" in its '
174 @'pubspec\.'), 174 r'pubspec\.'),
175 exitCode: 1); 175 exitCode: 1);
176 176
177 run(); 177 run();
178 }); 178 });
179 179
180 test('checks out and updates a package from Git', () { 180 test('checks out and updates a package from Git', () {
181 ensureGit(); 181 ensureGit();
182 182
183 git('foo.git', [ 183 git('foo.git', [
184 libDir('foo'), 184 libDir('foo'),
185 libPubspec('foo', '1.0.0') 185 libPubspec('foo', '1.0.0')
186 ]).scheduleCreate(); 186 ]).scheduleCreate();
187 187
188 appDir([{"git": "../foo.git"}]).scheduleCreate(); 188 appDir([{"git": "../foo.git"}]).scheduleCreate();
189 189
190 schedulePub(args: ['install'], 190 schedulePub(args: ['install'],
191 output: const RegExp(@"Dependencies installed!$")); 191 output: const RegExp(r"Dependencies installed!$"));
192 192
193 dir(cachePath, [ 193 dir(cachePath, [
194 dir('git', [ 194 dir('git', [
195 dir('cache', [gitPackageRepoCacheDir('foo')]), 195 dir('cache', [gitPackageRepoCacheDir('foo')]),
196 gitPackageRevisionCacheDir('foo') 196 gitPackageRevisionCacheDir('foo')
197 ]) 197 ])
198 ]).scheduleValidate(); 198 ]).scheduleValidate();
199 199
200 dir(packagesPath, [ 200 dir(packagesPath, [
201 dir('foo', [ 201 dir('foo', [
202 file('foo.dart', 'main() => "foo";') 202 file('foo.dart', 'main() => "foo";')
203 ]) 203 ])
204 ]).scheduleValidate(); 204 ]).scheduleValidate();
205 205
206 // TODO(nweiz): remove this once we support pub update 206 // TODO(nweiz): remove this once we support pub update
207 dir(packagesPath).scheduleDelete(); 207 dir(packagesPath).scheduleDelete();
208 file('$appPath/pubspec.lock', '').scheduleDelete(); 208 file('$appPath/pubspec.lock', '').scheduleDelete();
209 209
210 git('foo.git', [ 210 git('foo.git', [
211 libDir('foo', 'foo 2'), 211 libDir('foo', 'foo 2'),
212 libPubspec('foo', '1.0.0') 212 libPubspec('foo', '1.0.0')
213 ]).scheduleCommit(); 213 ]).scheduleCommit();
214 214
215 schedulePub(args: ['install'], 215 schedulePub(args: ['install'],
216 output: const RegExp(@"Dependencies installed!$")); 216 output: const RegExp(r"Dependencies installed!$"));
217 217
218 // When we download a new version of the git package, we should re-use the 218 // When we download a new version of the git package, we should re-use the
219 // git/cache directory but create a new git/ directory. 219 // git/cache directory but create a new git/ directory.
220 dir(cachePath, [ 220 dir(cachePath, [
221 dir('git', [ 221 dir('git', [
222 dir('cache', [gitPackageRepoCacheDir('foo')]), 222 dir('cache', [gitPackageRepoCacheDir('foo')]),
223 gitPackageRevisionCacheDir('foo'), 223 gitPackageRevisionCacheDir('foo'),
224 gitPackageRevisionCacheDir('foo', 2) 224 gitPackageRevisionCacheDir('foo', 2)
225 ]) 225 ])
226 ]).scheduleValidate(); 226 ]).scheduleValidate();
(...skipping 11 matching lines...) Expand all
238 ensureGit(); 238 ensureGit();
239 239
240 git('foo.git', [ 240 git('foo.git', [
241 libDir('foo'), 241 libDir('foo'),
242 libPubspec('foo', '1.0.0') 242 libPubspec('foo', '1.0.0')
243 ]).scheduleCreate(); 243 ]).scheduleCreate();
244 244
245 appDir([{"git": "../foo.git"}]).scheduleCreate(); 245 appDir([{"git": "../foo.git"}]).scheduleCreate();
246 246
247 schedulePub(args: ['install'], 247 schedulePub(args: ['install'],
248 output: const RegExp(@"Dependencies installed!$")); 248 output: const RegExp(r"Dependencies installed!$"));
249 249
250 dir(cachePath, [ 250 dir(cachePath, [
251 dir('git', [ 251 dir('git', [
252 dir('cache', [gitPackageRepoCacheDir('foo')]), 252 dir('cache', [gitPackageRepoCacheDir('foo')]),
253 gitPackageRevisionCacheDir('foo') 253 gitPackageRevisionCacheDir('foo')
254 ]) 254 ])
255 ]).scheduleValidate(); 255 ]).scheduleValidate();
256 256
257 dir(packagesPath, [ 257 dir(packagesPath, [
258 dir('foo', [ 258 dir('foo', [
259 file('foo.dart', 'main() => "foo";') 259 file('foo.dart', 'main() => "foo";')
260 ]) 260 ])
261 ]).scheduleValidate(); 261 ]).scheduleValidate();
262 262
263 // TODO(nweiz): remove this once we support pub update 263 // TODO(nweiz): remove this once we support pub update
264 dir(packagesPath).scheduleDelete(); 264 dir(packagesPath).scheduleDelete();
265 265
266 // Verify that nothing breaks if we install a Git revision that's already 266 // Verify that nothing breaks if we install a Git revision that's already
267 // in the cache. 267 // in the cache.
268 schedulePub(args: ['install'], 268 schedulePub(args: ['install'],
269 output: const RegExp(@"Dependencies installed!$")); 269 output: const RegExp(r"Dependencies installed!$"));
270 270
271 run(); 271 run();
272 }); 272 });
273 273
274 test('checks out a package at a specific revision from Git', () { 274 test('checks out a package at a specific revision from Git', () {
275 ensureGit(); 275 ensureGit();
276 276
277 var repo = git('foo.git', [ 277 var repo = git('foo.git', [
278 libDir('foo', 'foo 1'), 278 libDir('foo', 'foo 1'),
279 libPubspec('foo', '1.0.0') 279 libPubspec('foo', '1.0.0')
280 ]); 280 ]);
281 repo.scheduleCreate(); 281 repo.scheduleCreate();
282 var commit = repo.revParse('HEAD'); 282 var commit = repo.revParse('HEAD');
283 283
284 git('foo.git', [ 284 git('foo.git', [
285 libDir('foo', 'foo 2'), 285 libDir('foo', 'foo 2'),
286 libPubspec('foo', '1.0.0') 286 libPubspec('foo', '1.0.0')
287 ]).scheduleCommit(); 287 ]).scheduleCommit();
288 288
289 appDir([{"git": {"url": "../foo.git", "ref": commit}}]).scheduleCreate(); 289 appDir([{"git": {"url": "../foo.git", "ref": commit}}]).scheduleCreate();
290 290
291 schedulePub(args: ['install'], 291 schedulePub(args: ['install'],
292 output: const RegExp(@"Dependencies installed!$")); 292 output: const RegExp(r"Dependencies installed!$"));
293 293
294 dir(packagesPath, [ 294 dir(packagesPath, [
295 dir('foo', [ 295 dir('foo', [
296 file('foo.dart', 'main() => "foo 1";') 296 file('foo.dart', 'main() => "foo 1";')
297 ]) 297 ])
298 ]).scheduleValidate(); 298 ]).scheduleValidate();
299 299
300 run(); 300 run();
301 }); 301 });
302 302
303 test('checks out a package at a specific branch from Git', () { 303 test('checks out a package at a specific branch from Git', () {
304 ensureGit(); 304 ensureGit();
305 305
306 var repo = git('foo.git', [ 306 var repo = git('foo.git', [
307 libDir('foo', 'foo 1'), 307 libDir('foo', 'foo 1'),
308 libPubspec('foo', '1.0.0') 308 libPubspec('foo', '1.0.0')
309 ]); 309 ]);
310 repo.scheduleCreate(); 310 repo.scheduleCreate();
311 repo.scheduleGit(["branch", "old"]); 311 repo.scheduleGit(["branch", "old"]);
312 312
313 git('foo.git', [ 313 git('foo.git', [
314 libDir('foo', 'foo 2'), 314 libDir('foo', 'foo 2'),
315 libPubspec('foo', '1.0.0') 315 libPubspec('foo', '1.0.0')
316 ]).scheduleCommit(); 316 ]).scheduleCommit();
317 317
318 appDir([{"git": {"url": "../foo.git", "ref": "old"}}]).scheduleCreate(); 318 appDir([{"git": {"url": "../foo.git", "ref": "old"}}]).scheduleCreate();
319 319
320 schedulePub(args: ['install'], 320 schedulePub(args: ['install'],
321 output: const RegExp(@"Dependencies installed!$")); 321 output: const RegExp(r"Dependencies installed!$"));
322 322
323 dir(packagesPath, [ 323 dir(packagesPath, [
324 dir('foo', [ 324 dir('foo', [
325 file('foo.dart', 'main() => "foo 1";') 325 file('foo.dart', 'main() => "foo 1";')
326 ]) 326 ])
327 ]).scheduleValidate(); 327 ]).scheduleValidate();
328 328
329 run(); 329 run();
330 }); 330 });
331 331
332 test('keeps a Git package locked to the version in the lockfile', () { 332 test('keeps a Git package locked to the version in the lockfile', () {
333 ensureGit(); 333 ensureGit();
334 334
335 git('foo.git', [ 335 git('foo.git', [
336 libDir('foo'), 336 libDir('foo'),
337 libPubspec('foo', '1.0.0') 337 libPubspec('foo', '1.0.0')
338 ]).scheduleCreate(); 338 ]).scheduleCreate();
339 339
340 appDir([{"git": "../foo.git"}]).scheduleCreate(); 340 appDir([{"git": "../foo.git"}]).scheduleCreate();
341 341
342 // This install should lock the foo.git dependency to the current revision. 342 // This install should lock the foo.git dependency to the current revision.
343 schedulePub(args: ['install'], 343 schedulePub(args: ['install'],
344 output: const RegExp(@"Dependencies installed!$")); 344 output: const RegExp(r"Dependencies installed!$"));
345 345
346 dir(packagesPath, [ 346 dir(packagesPath, [
347 dir('foo', [ 347 dir('foo', [
348 file('foo.dart', 'main() => "foo";') 348 file('foo.dart', 'main() => "foo";')
349 ]) 349 ])
350 ]).scheduleValidate(); 350 ]).scheduleValidate();
351 351
352 // Delete the packages path to simulate a new checkout of the application. 352 // Delete the packages path to simulate a new checkout of the application.
353 dir(packagesPath).scheduleDelete(); 353 dir(packagesPath).scheduleDelete();
354 354
355 git('foo.git', [ 355 git('foo.git', [
356 libDir('foo', 'foo 2'), 356 libDir('foo', 'foo 2'),
357 libPubspec('foo', '1.0.0') 357 libPubspec('foo', '1.0.0')
358 ]).scheduleCommit(); 358 ]).scheduleCommit();
359 359
360 // This install shouldn't update the foo.git dependency due to the lockfile. 360 // This install shouldn't update the foo.git dependency due to the lockfile.
361 schedulePub(args: ['install'], 361 schedulePub(args: ['install'],
362 output: const RegExp(@"Dependencies installed!$")); 362 output: const RegExp(r"Dependencies installed!$"));
363 363
364 dir(packagesPath, [ 364 dir(packagesPath, [
365 dir('foo', [ 365 dir('foo', [
366 file('foo.dart', 'main() => "foo";') 366 file('foo.dart', 'main() => "foo";')
367 ]) 367 ])
368 ]).scheduleValidate(); 368 ]).scheduleValidate();
369 369
370 run(); 370 run();
371 }); 371 });
372 372
373 test('updates a locked Git package with a new incompatible constraint', () { 373 test('updates a locked Git package with a new incompatible constraint', () {
374 ensureGit(); 374 ensureGit();
375 375
376 git('foo.git', [ 376 git('foo.git', [
377 libDir('foo'), 377 libDir('foo'),
378 libPubspec('foo', '0.5.0') 378 libPubspec('foo', '0.5.0')
379 ]).scheduleCreate(); 379 ]).scheduleCreate();
380 380
381 appDir([{"git": "../foo.git"}]).scheduleCreate(); 381 appDir([{"git": "../foo.git"}]).scheduleCreate();
382 382
383 schedulePub(args: ['install'], 383 schedulePub(args: ['install'],
384 output: const RegExp(@"Dependencies installed!$")); 384 output: const RegExp(r"Dependencies installed!$"));
385 385
386 dir(packagesPath, [ 386 dir(packagesPath, [
387 dir('foo', [ 387 dir('foo', [
388 file('foo.dart', 'main() => "foo";') 388 file('foo.dart', 'main() => "foo";')
389 ]) 389 ])
390 ]).scheduleValidate(); 390 ]).scheduleValidate();
391 391
392 git('foo.git', [ 392 git('foo.git', [
393 libDir('foo', 'foo 1.0.0'), 393 libDir('foo', 'foo 1.0.0'),
394 libPubspec("foo", "1.0.0") 394 libPubspec("foo", "1.0.0")
395 ]).scheduleCommit(); 395 ]).scheduleCommit();
396 396
397 appDir([{"git": "../foo.git", "version": ">=1.0.0"}]).scheduleCreate(); 397 appDir([{"git": "../foo.git", "version": ">=1.0.0"}]).scheduleCreate();
398 398
399 schedulePub(args: ['install'], 399 schedulePub(args: ['install'],
400 output: const RegExp(@"Dependencies installed!$")); 400 output: const RegExp(r"Dependencies installed!$"));
401 401
402 dir(packagesPath, [ 402 dir(packagesPath, [
403 dir('foo', [ 403 dir('foo', [
404 file('foo.dart', 'main() => "foo 1.0.0";') 404 file('foo.dart', 'main() => "foo 1.0.0";')
405 ]) 405 ])
406 ]).scheduleValidate(); 406 ]).scheduleValidate();
407 407
408 run(); 408 run();
409 }); 409 });
410 410
411 test("doesn't update a locked Git package with a new compatible " 411 test("doesn't update a locked Git package with a new compatible "
412 "constraint", () { 412 "constraint", () {
413 ensureGit(); 413 ensureGit();
414 414
415 git('foo.git', [ 415 git('foo.git', [
416 libDir('foo', 'foo 1.0.0'), 416 libDir('foo', 'foo 1.0.0'),
417 libPubspec("foo", "1.0.0") 417 libPubspec("foo", "1.0.0")
418 ]).scheduleCreate(); 418 ]).scheduleCreate();
419 419
420 appDir([{"git": "../foo.git"}]).scheduleCreate(); 420 appDir([{"git": "../foo.git"}]).scheduleCreate();
421 421
422 schedulePub(args: ['install'], 422 schedulePub(args: ['install'],
423 output: const RegExp(@"Dependencies installed!$")); 423 output: const RegExp(r"Dependencies installed!$"));
424 424
425 dir(packagesPath, [ 425 dir(packagesPath, [
426 dir('foo', [ 426 dir('foo', [
427 file('foo.dart', 'main() => "foo 1.0.0";') 427 file('foo.dart', 'main() => "foo 1.0.0";')
428 ]) 428 ])
429 ]).scheduleValidate(); 429 ]).scheduleValidate();
430 430
431 git('foo.git', [ 431 git('foo.git', [
432 libDir('foo', 'foo 1.0.1'), 432 libDir('foo', 'foo 1.0.1'),
433 libPubspec("foo", "1.0.1") 433 libPubspec("foo", "1.0.1")
434 ]).scheduleCommit(); 434 ]).scheduleCommit();
435 435
436 appDir([{"git": "../foo.git", "version": ">=1.0.0"}]).scheduleCreate(); 436 appDir([{"git": "../foo.git", "version": ">=1.0.0"}]).scheduleCreate();
437 437
438 schedulePub(args: ['install'], 438 schedulePub(args: ['install'],
439 output: const RegExp(@"Dependencies installed!$")); 439 output: const RegExp(r"Dependencies installed!$"));
440 440
441 dir(packagesPath, [ 441 dir(packagesPath, [
442 dir('foo', [ 442 dir('foo', [
443 file('foo.dart', 'main() => "foo 1.0.0";') 443 file('foo.dart', 'main() => "foo 1.0.0";')
444 ]) 444 ])
445 ]).scheduleValidate(); 445 ]).scheduleValidate();
446 446
447 run(); 447 run();
448 }); 448 });
449 449
450 group("(regression)", () { 450 group("(regression)", () {
451 test('checks out a package from Git with a trailing slash', () { 451 test('checks out a package from Git with a trailing slash', () {
452 ensureGit(); 452 ensureGit();
453 453
454 git('foo.git', [ 454 git('foo.git', [
455 libDir('foo'), 455 libDir('foo'),
456 libPubspec('foo', '1.0.0') 456 libPubspec('foo', '1.0.0')
457 ]).scheduleCreate(); 457 ]).scheduleCreate();
458 458
459 appDir([{"git": "../foo.git/"}]).scheduleCreate(); 459 appDir([{"git": "../foo.git/"}]).scheduleCreate();
460 460
461 schedulePub(args: ['install'], 461 schedulePub(args: ['install'],
462 output: const RegExp(@"Dependencies installed!$")); 462 output: const RegExp(r"Dependencies installed!$"));
463 463
464 dir(cachePath, [ 464 dir(cachePath, [
465 dir('git', [ 465 dir('git', [
466 dir('cache', [gitPackageRepoCacheDir('foo')]), 466 dir('cache', [gitPackageRepoCacheDir('foo')]),
467 gitPackageRevisionCacheDir('foo') 467 gitPackageRevisionCacheDir('foo')
468 ]) 468 ])
469 ]).scheduleValidate(); 469 ]).scheduleValidate();
470 470
471 dir(packagesPath, [ 471 dir(packagesPath, [
472 dir('foo', [ 472 dir('foo', [
473 file('foo.dart', 'main() => "foo";') 473 file('foo.dart', 'main() => "foo";')
474 ]) 474 ])
475 ]).scheduleValidate(); 475 ]).scheduleValidate();
476 476
477 run(); 477 run();
478 }); 478 });
479 }); 479 });
480 } 480 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698