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

Unified Diff: tests/language/src/BadNamedParametersTest.dart

Issue 9582027: Some use of the new @static-clean and /// annotations in shared tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « tests/language/src/BadNamedParameters2Test.dart ('k') | tests/language/src/CallThroughGetterTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/BadNamedParametersTest.dart
diff --git a/tests/language/src/BadNamedParametersTest.dart b/tests/language/src/BadNamedParametersTest.dart
index 16cbb91015cbc0f3ab3f19137cd770b94e245c70..db255213d544a00a9224c42c2a973d023dbcc6a4 100644
--- a/tests/language/src/BadNamedParametersTest.dart
+++ b/tests/language/src/BadNamedParametersTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing bad named parameters.
@@ -21,35 +21,40 @@ class BadNamedParametersTest {
bool caught;
try {
caught = false;
- np.f42(10, 25, b:25); // Parameter b passed twice.
+ // Parameter b passed twice.
+ np.f42(10, 25, b:25); /// static type error
} catch (NoSuchMethodException e) {
caught = true;
}
Expect.equals(true, caught);
try {
caught = false;
- np.f42(10, 25, x:99); // Parameter x does not exist.
+ // Parameter x does not exist.
+ np.f42(10, 25, x:99); /// static type error
} catch (NoSuchMethodException e) {
caught = true;
}
Expect.equals(true, caught);
try {
caught = false;
- np.f52(10, b:25, b1:99, c:35); // Parameter b1 does not exist.
+ // Parameter b1 does not exist.
+ np.f52(10, b:25, b1:99, c:35); /// static type error
} catch (NoSuchMethodException e) {
caught = true;
}
Expect.equals(true, caught);
try {
caught = false;
- np.f42(10, 20, 30, 40); // Too many parameters.
+ // Too many parameters.
+ np.f42(10, 20, 30, 40); /// static type error
} catch (NoSuchMethodException e) {
caught = true;
}
Expect.equals(true, caught);
try {
caught = false;
- np.f42(b:25); // Too few parameters.
+ // Too few parameters.
+ np.f42(b:25); /// static type error
} catch (NoSuchMethodException e) {
caught = true;
}
« no previous file with comments | « tests/language/src/BadNamedParameters2Test.dart ('k') | tests/language/src/CallThroughGetterTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698