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

Unified Diff: pkg/expect/lib/expect.dart

Issue 2985243002: Migrate block 44. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | tests/language/bool_check_test.dart » ('j') | tests/language_2/bool_check_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/expect/lib/expect.dart
diff --git a/pkg/expect/lib/expect.dart b/pkg/expect/lib/expect.dart
index c9810b03504f6398de48e8318643a343785c16f6..3acf5327714806aa3898bd8ce9af08d2b0421e22 100644
--- a/pkg/expect/lib/expect.dart
+++ b/pkg/expect/lib/expect.dart
@@ -460,6 +460,10 @@ class Expect {
Expect.throws(f, (error) => error is ArgumentError, "ArgumentError");
}
+ static void throwsAssertionError(void f()) {
+ Expect.throws(f, (error) => error is AssertionError, "AssertionError");
+ }
+
static void throwsCastError(void f()) {
Expect.throws(f, (error) => error is CastError, "CastError");
}
« no previous file with comments | « no previous file | tests/language/bool_check_test.dart » ('j') | tests/language_2/bool_check_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698