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

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

Issue 433753003: Update my name in test data and comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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) 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 /// Test infrastructure for testing pub. 5 /// Test infrastructure for testing pub.
6 /// 6 ///
7 /// Unlike typical unit tests, most pub tests are integration tests that stage 7 /// Unlike typical unit tests, most pub tests are integration tests that stage
8 /// some stuff on the file system, run pub, and then validate the results. This 8 /// some stuff on the file system, run pub, and then validate the results. This
9 /// library provides an API to build tests like that. 9 /// library provides an API to build tests like that.
10 library test_pub; 10 library test_pub;
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 innerHttpClient = oldInnerClient; 869 innerHttpClient = oldInnerClient;
870 }, 'de-activating the mock client'); 870 }, 'de-activating the mock client');
871 } 871 }
872 872
873 /// Describes a map representing a library package with the given [name], 873 /// Describes a map representing a library package with the given [name],
874 /// [version], and [dependencies]. 874 /// [version], and [dependencies].
875 Map packageMap(String name, String version, [Map dependencies]) { 875 Map packageMap(String name, String version, [Map dependencies]) {
876 var package = { 876 var package = {
877 "name": name, 877 "name": name,
878 "version": version, 878 "version": version,
879 "author": "Nathan Weizenbaum <nweiz@google.com>", 879 "author": "Natalie Weizenbaum <nweiz@google.com>",
880 "homepage": "http://pub.dartlang.org", 880 "homepage": "http://pub.dartlang.org",
881 "description": "A package, I guess." 881 "description": "A package, I guess."
882 }; 882 };
883 883
884 if (dependencies != null) package["dependencies"] = dependencies; 884 if (dependencies != null) package["dependencies"] = dependencies;
885 885
886 return package; 886 return package;
887 } 887 }
888 888
889 /// Returns a Map in the format used by the pub.dartlang.org API to represent a 889 /// Returns a Map in the format used by the pub.dartlang.org API to represent a
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 _lastMatcher.matches(item.last, matchState); 1040 _lastMatcher.matches(item.last, matchState);
1041 } 1041 }
1042 1042
1043 Description describe(Description description) { 1043 Description describe(Description description) {
1044 return description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]); 1044 return description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]);
1045 } 1045 }
1046 } 1046 }
1047 1047
1048 /// A [StreamMatcher] that matches multiple lines of output. 1048 /// A [StreamMatcher] that matches multiple lines of output.
1049 StreamMatcher emitsLines(String output) => inOrder(output.split("\n")); 1049 StreamMatcher emitsLines(String output) => inOrder(output.split("\n"));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698