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

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

Issue 11622011: Restructure YAML package suitable for pub lish (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 /** 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 10 matching lines...) Expand all
21 import '../../lib/file_system.dart' as fs; 21 import '../../lib/file_system.dart' as fs;
22 import '../../pub/entrypoint.dart'; 22 import '../../pub/entrypoint.dart';
23 import '../../pub/git_source.dart'; 23 import '../../pub/git_source.dart';
24 import '../../pub/hosted_source.dart'; 24 import '../../pub/hosted_source.dart';
25 import '../../pub/io.dart'; 25 import '../../pub/io.dart';
26 import '../../pub/path.dart' as path; 26 import '../../pub/path.dart' as path;
27 import '../../pub/sdk_source.dart'; 27 import '../../pub/sdk_source.dart';
28 import '../../pub/system_cache.dart'; 28 import '../../pub/system_cache.dart';
29 import '../../pub/utils.dart'; 29 import '../../pub/utils.dart';
30 import '../../pub/validator.dart'; 30 import '../../pub/validator.dart';
31 import '../../pub/yaml/yaml.dart'; 31 import '../../pub/yaml/lib/yaml.dart';
32 32
33 /** 33 /**
34 * Creates a new [FileDescriptor] with [name] and [contents]. 34 * Creates a new [FileDescriptor] with [name] and [contents].
35 */ 35 */
36 FileDescriptor file(Pattern name, String contents) => 36 FileDescriptor file(Pattern name, String contents) =>
37 new FileDescriptor(name, contents); 37 new FileDescriptor(name, contents);
38 38
39 /** 39 /**
40 * Creates a new [DirectoryDescriptor] with [name] and [contents]. 40 * Creates a new [DirectoryDescriptor] with [name] and [contents].
41 */ 41 */
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 /// calling [completion] is unnecessary. 1664 /// calling [completion] is unnecessary.
1665 void expectLater(Future actual, matcher, {String reason, 1665 void expectLater(Future actual, matcher, {String reason,
1666 FailureHandler failureHandler, bool verbose: false}) { 1666 FailureHandler failureHandler, bool verbose: false}) {
1667 _schedule((_) { 1667 _schedule((_) {
1668 return actual.transform((value) { 1668 return actual.transform((value) {
1669 expect(value, matcher, reason: reason, failureHandler: failureHandler, 1669 expect(value, matcher, reason: reason, failureHandler: failureHandler,
1670 verbose: false); 1670 verbose: false);
1671 }); 1671 });
1672 }); 1672 });
1673 } 1673 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698