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

Unified Diff: pkg/unittest/test/matchers_test.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/test/matchers_test.dart
===================================================================
--- pkg/unittest/test/matchers_test.dart (revision 14156)
+++ pkg/unittest/test/matchers_test.dart (working copy)
@@ -170,8 +170,7 @@
throwsUnsupportedError);
shouldFail(() { throw new Exception(); },
throwsUnsupportedError,
- "Expected: throws an exception which matches "
- "UnsupportedError "
+ "Expected: throws an exception which matches UnsupportedError "
"but: exception <Exception> does not match "
"UnsupportedError.");
});
@@ -527,11 +526,9 @@
group('Predicate Matchers', () {
test('isInstanceOf', () {
- shouldFail(0, predicate((x) => x is String,
- description: "an instance of String"),
+ shouldFail(0, predicate((x) => x is String, "an instance of String"),
"Expected: an instance of String but: was <0>.");
- shouldPass('cow', predicate((x) => x is String,
- description: "an instance of String"));
+ shouldPass('cow', predicate((x) => x is String, "an instance of String"));
});
});

Powered by Google App Engine
This is Rietveld 408576698