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

Unified Diff: pkg/unittest/mock.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 side-by-side diff with in-line comments
Download patch
Index: pkg/unittest/mock.dart
===================================================================
--- pkg/unittest/mock.dart (revision 14156)
+++ pkg/unittest/mock.dart (working copy)
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+part of unittest;
+
/**
* The error formatter for mocking is a bit different from the default one
* for unit testing; instead of the third argument being a 'reason'
@@ -432,7 +434,7 @@
_mockFailureHandler =
new _MockFailureHandler(getOrCreateExpectFailureHandler());
}
- expect(logs, matcher, filter, _mockFailureHandler);
+ expect(logs, matcher, reason:filter, failureHandler: _mockFailureHandler);
return this;
}

Powered by Google App Engine
This is Rietveld 408576698