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

Unified Diff: test/test_utils.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits Created 5 years, 11 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 | « test/test_common.dart ('k') | test/throws_matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_utils.dart
diff --git a/test/test_utils.dart b/test/test_utils.dart
index c29bec91c68b4d08737afe41c8c60d4c9b88e214..4df8e2ef6c742b79c37adc1972af3c1f11c90447 100644
--- a/test/test_utils.dart
+++ b/test/test_utils.dart
@@ -65,7 +65,9 @@ void shouldPass(value, Matcher matcher, {bool isAsync: false}) {
}
doesNotThrow() {}
-doesThrow() { throw 'X'; }
+doesThrow() {
+ throw 'X';
+}
class PrefixMatcher extends Matcher {
final String _prefix;
@@ -75,8 +77,8 @@ class PrefixMatcher extends Matcher {
(collapseWhitespace(item)).startsWith(collapseWhitespace(_prefix));
}
- Description describe(Description description) =>
- description.add('a string starting with ').
- addDescriptionOf(collapseWhitespace(_prefix)).
- add(' ignoring whitespace');
+ Description describe(Description description) => description
+ .add('a string starting with ')
+ .addDescriptionOf(collapseWhitespace(_prefix))
+ .add(' ignoring whitespace');
}
« no previous file with comments | « test/test_common.dart ('k') | test/throws_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698