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

Side by Side Diff: dart/pkg/unittest/matcher.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
« no previous file with comments | « dart/pkg/unittest/map_matchers.dart ('k') | dart/pkg/unittest/mock.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 part of unittest;
2
3 // 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
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 5 /**
8 * MatchState is a simple wrapper around an arbitrary object. 6 * MatchState is a simple wrapper around an arbitrary object.
9 * [Matcher] [matches] methods can use this to store useful 7 * [Matcher] [matches] methods can use this to store useful
10 * information upon match failures, and this information will 8 * information upon match failures, and this information will
11 * be passed to [describeMismatch]. Each [Matcher] is responsible 9 * be passed to [describeMismatch]. Each [Matcher] is responsible
12 * for its own use of this state, so the state created by [matches] 10 * for its own use of this state, so the state created by [matches]
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 * Generates a description of the matcher failed for a particular 47 * Generates a description of the matcher failed for a particular
50 * [item], by appending the description to [mismatchDescription]. 48 * [item], by appending the description to [mismatchDescription].
51 * It does not check whether the [item] fails the match, as it is 49 * It does not check whether the [item] fails the match, as it is
52 * only called after a failed match. There may be additional info 50 * only called after a failed match. There may be additional info
53 * about the mismatch in [matchState]. 51 * about the mismatch in [matchState].
54 */ 52 */
55 Description describeMismatch(item, Description mismatchDescription, 53 Description describeMismatch(item, Description mismatchDescription,
56 MatchState matchState, bool verbose) => 54 MatchState matchState, bool verbose) =>
57 mismatchDescription.add('was ').addDescriptionOf(item); 55 mismatchDescription.add('was ').addDescriptionOf(item);
58 } 56 }
OLDNEW
« no previous file with comments | « dart/pkg/unittest/map_matchers.dart ('k') | dart/pkg/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698