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

Unified Diff: utils/tests/pub/pubspec_test.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to reviews, rebase, and merge. Created 8 years, 4 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: utils/tests/pub/pubspec_test.dart
diff --git a/utils/tests/pub/pubspec_test.dart b/utils/tests/pub/pubspec_test.dart
index 1add34db5886e9f1a9d0fd2166103352e59b46fb..befca24f450256e09dfe370df7775908930161f1 100644
--- a/utils/tests/pub/pubspec_test.dart
+++ b/utils/tests/pub/pubspec_test.dart
@@ -45,13 +45,13 @@ dependencies:
var sources = new SourceRegistry();
sources.register(new MockSource());
- throwsBadFormat(() {
+ expect(() {
new Pubspec.parse('''
dependencies:
foo:
mock: bad
''', sources);
- });
+ }, throwsFormatException);
});
test("allows comment-only files", () {
@@ -70,7 +70,3 @@ dependencies:
});
});
}
-
-throwsBadFormat(function) {
- expect(function, throwsA((e) => e is FormatException));
-}

Powered by Google App Engine
This is Rietveld 408576698