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

Unified Diff: pkg/mock/lib/src/result_matcher.dart

Issue 278613003: pkg/mock: fixes for v0.11 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: status file fix for mismatched version constraints Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/mock/lib/src/mock.dart ('k') | pkg/mock/lib/src/result_set_matcher.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mock/lib/src/result_matcher.dart
diff --git a/pkg/mock/lib/src/result_matcher.dart b/pkg/mock/lib/src/result_matcher.dart
index 08f89d6c1b593757cf6194dfa02f7828fc83aeb4..aaf58069f1e5b58131ac7b66c938ca34ff623251 100644
--- a/pkg/mock/lib/src/result_matcher.dart
+++ b/pkg/mock/lib/src/result_matcher.dart
@@ -21,7 +21,7 @@ class _ResultMatcher extends Matcher {
bool matches(item, Map matchState) {
if (item is! LogEntry) {
- return false;
+ return false;
}
// normalize the action; _PROXY is like _RETURN.
Action eaction = item.action;
@@ -33,10 +33,11 @@ class _ResultMatcher extends Matcher {
Description describe(Description description) {
description.add(' to ');
- if (action == Action.RETURN || action == Action.PROXY)
+ if (action == Action.RETURN || action == Action.PROXY) {
description.add('return ');
- else
+ } else {
description.add('throw ');
+ }
return description.addDescriptionOf(value);
}
« no previous file with comments | « pkg/mock/lib/src/mock.dart ('k') | pkg/mock/lib/src/result_set_matcher.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698