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

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: 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
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 ');
Siggi Cherem (dart-lang) 2014/05/08 21:41:22 how about: description.add(... ? 'return' : 'throw
kevmoo 2014/05/08 22:43:28 Trying to leave code mostly as I found it.
- else
+ } else {
description.add('throw ');
+ }
return description.addDescriptionOf(value);
}

Powered by Google App Engine
This is Rietveld 408576698