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

Unified Diff: tests/language/bad_named_parameters_test.dart

Issue 10909166: Rename NoSuchMethodException to NoSuchMethodError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 8 years, 3 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: tests/language/bad_named_parameters_test.dart
diff --git a/tests/language/bad_named_parameters_test.dart b/tests/language/bad_named_parameters_test.dart
index eb2b556c6f9e733848f561ddfae1c76f1e8eb629..937cf05de695080f5d9c5bc4c0f7989a3cb9f710 100644
--- a/tests/language/bad_named_parameters_test.dart
+++ b/tests/language/bad_named_parameters_test.dart
@@ -23,7 +23,7 @@ class BadNamedParametersTest {
caught = false;
// Parameter b passed twice.
np.f42(10, 25, b:25); /// static type warning
- } on NoSuchMethodException catch (e) {
+ } on NoSuchMethodError catch (e) {
caught = true;
}
Expect.equals(true, caught);
@@ -31,7 +31,7 @@ class BadNamedParametersTest {
caught = false;
// Parameter x does not exist.
np.f42(10, 25, x:99); /// static type warning
- } on NoSuchMethodException catch (e) {
+ } on NoSuchMethodError catch (e) {
caught = true;
}
Expect.equals(true, caught);
@@ -39,7 +39,7 @@ class BadNamedParametersTest {
caught = false;
// Parameter b1 does not exist.
np.f52(10, b:25, b1:99, c:35); /// static type warning
- } on NoSuchMethodException catch (e) {
+ } on NoSuchMethodError catch (e) {
caught = true;
}
Expect.equals(true, caught);
@@ -47,7 +47,7 @@ class BadNamedParametersTest {
caught = false;
// Too many parameters.
np.f42(10, 20, 30, 40); /// static type warning
- } on NoSuchMethodException catch (e) {
+ } on NoSuchMethodError catch (e) {
caught = true;
}
Expect.equals(true, caught);
@@ -55,7 +55,7 @@ class BadNamedParametersTest {
caught = false;
// Too few parameters.
np.f42(b:25); /// static type warning
- } on NoSuchMethodException catch (e) {
+ } on NoSuchMethodError catch (e) {
caught = true;
}
Expect.equals(true, caught);
« no previous file with comments | « tests/language/bad_named_parameters2_test.dart ('k') | tests/language/call_nonexistent_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698