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

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

Issue 16756002: Stop working around issue 2644. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/_internal/pub/lib/src/utils.dart ('k') | 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) 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. Unlike typical unit tests, most pub 5 /// Test infrastructure for testing pub. Unlike typical unit tests, most pub
6 /// tests are integration tests that stage some stuff on the file system, run 6 /// tests are integration tests that stage some stuff on the file system, run
7 /// pub, and then validate the results. This library provides an API to build 7 /// pub, and then validate the results. This library provides an API to build
8 /// tests like that. 8 /// tests like that.
9 library test_pub; 9 library test_pub;
10 10
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 'pubspec': pubspec, 668 'pubspec': pubspec,
669 'version': version, 669 'version': version,
670 'url': '/api/packages/$name/versions/$version', 670 'url': '/api/packages/$name/versions/$version',
671 'archive_url': '/packages/$name/versions/$version.tar.gz', 671 'archive_url': '/packages/$name/versions/$version.tar.gz',
672 'new_dartdoc_url': '/api/packages/$name/versions/$version' 672 'new_dartdoc_url': '/api/packages/$name/versions/$version'
673 '/new_dartdoc', 673 '/new_dartdoc',
674 'package_url': '/api/packages/$name' 674 'package_url': '/api/packages/$name'
675 }; 675 };
676 676
677 if (full) { 677 if (full) {
678 mapAddAll(map, { 678 map.addAll({
679 'downloads': 0, 679 'downloads': 0,
680 'created': '2012-09-25T18:38:28.685260', 680 'created': '2012-09-25T18:38:28.685260',
681 'libraries': ['$name.dart'], 681 'libraries': ['$name.dart'],
682 'uploader': ['nweiz@google.com'] 682 'uploader': ['nweiz@google.com']
683 }); 683 });
684 } 684 }
685 685
686 return map; 686 return map;
687 } 687 }
688 688
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 bool matches(item, MatchState matchState) { 795 bool matches(item, MatchState matchState) {
796 if (item is! Pair) return false; 796 if (item is! Pair) return false;
797 return _firstMatcher.matches(item.first, matchState) && 797 return _firstMatcher.matches(item.first, matchState) &&
798 _lastMatcher.matches(item.last, matchState); 798 _lastMatcher.matches(item.last, matchState);
799 } 799 }
800 800
801 Description describe(Description description) { 801 Description describe(Description description) {
802 description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]); 802 description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]);
803 } 803 }
804 } 804 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698