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

Side by Side Diff: pkg/unittest/lib/src/core_matchers.dart

Issue 99053003: Renaming unittest parts- missed these when giving the libraries proper names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « no previous file | pkg/unittest/lib/src/description.dart » ('j') | 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 part of matcher; 5 part of unittest.matcher;
6 6
7 /** 7 /**
8 * Returns a matcher that matches empty strings, maps or iterables 8 * Returns a matcher that matches empty strings, maps or iterables
9 * (including collections). 9 * (including collections).
10 */ 10 */
11 const Matcher isEmpty = const _Empty(); 11 const Matcher isEmpty = const _Empty();
12 12
13 class _Empty extends Matcher { 13 class _Empty extends Matcher {
14 const _Empty(); 14 const _Empty();
15 bool matches(item, Map matchState) { 15 bool matches(item, Map matchState) {
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 addDescriptionOf(matchState['feature']); 885 addDescriptionOf(matchState['feature']);
886 var innerDescription = new StringDescription(); 886 var innerDescription = new StringDescription();
887 _matcher.describeMismatch(matchState['feature'], innerDescription, 887 _matcher.describeMismatch(matchState['feature'], innerDescription,
888 matchState['state'], verbose); 888 matchState['state'], verbose);
889 if (innerDescription.length > 0) { 889 if (innerDescription.length > 0) {
890 mismatchDescription.add(' which ').add(innerDescription.toString()); 890 mismatchDescription.add(' which ').add(innerDescription.toString());
891 } 891 }
892 return mismatchDescription; 892 return mismatchDescription;
893 } 893 }
894 } 894 }
OLDNEW
« no previous file with comments | « no previous file | pkg/unittest/lib/src/description.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698