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

Unified Diff: tests/language/bad_named_parameters_test.dart

Issue 158733003: Fix language tests wrt. warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 bbe9b289ee6ce192ba6ef61d55f9f1ac2889fd32..06510e0e42e67ecd3bb2fbbddb322dfc3e61cbea 100644
--- a/tests/language/bad_named_parameters_test.dart
+++ b/tests/language/bad_named_parameters_test.dart
@@ -24,43 +24,43 @@ class BadNamedParametersTest {
try {
caught = false;
// Parameter b passed twice.
- np.f42(10, 25, b:25); /// static type warning
+ np.f42(10, 25, b:25); /// 01: static type warning
} on NoSuchMethodError catch (e) {
caught = true;
}
- Expect.equals(true, caught);
+ Expect.equals(true, caught); /// 01: continued
try {
caught = false;
// Parameter x does not exist.
- np.f42(10, 25, x:99); /// static type warning
+ np.f42(10, 25, x:99); /// 02: static type warning
} on NoSuchMethodError catch (e) {
caught = true;
}
- Expect.equals(true, caught);
+ Expect.equals(true, caught); /// 02: continued
try {
caught = false;
// Parameter b1 does not exist.
- np.f52(10, b:25, b1:99, c:35); /// static type warning
+ np.f52(10, b:25, b1:99, c:35); /// 03: static type warning
} on NoSuchMethodError catch (e) {
caught = true;
}
- Expect.equals(true, caught);
+ Expect.equals(true, caught); /// 03: continued
try {
caught = false;
// Too many parameters.
- np.f42(10, 20, 30, 40); /// static type warning
+ np.f42(10, 20, 30, 40); /// 04: static type warning
} on NoSuchMethodError catch (e) {
caught = true;
}
- Expect.equals(true, caught);
+ Expect.equals(true, caught); /// 04: continued
try {
caught = false;
// Too few parameters.
- np.f42(b:25); /// static type warning
+ np.f42(b:25); /// 05: static type warning
} on NoSuchMethodError catch (e) {
caught = true;
}
- Expect.equals(true, caught);
+ Expect.equals(true, caught); /// 05: continued
}
}

Powered by Google App Engine
This is Rietveld 408576698