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

Unified Diff: tests/language/named_parameters_aggregated_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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/named_parameters_aggregated_test.dart
diff --git a/tests/language/named_parameters_aggregated_test.dart b/tests/language/named_parameters_aggregated_test.dart
index a743569e86e3deaba09d4c19c46d415825adb43c..15e0c5a47d7122cddc5bcea356f16de0b9987b4a 100644
--- a/tests/language/named_parameters_aggregated_test.dart
+++ b/tests/language/named_parameters_aggregated_test.dart
@@ -11,7 +11,7 @@ class TypeTester<T> {}
// Expect compile-time error as no default values are allowed
// in closure type definitions.
typedef void Callback([String msg
- = "" /// 01: compile-time error
+ = "" //# 01: compile-time error
]);
class NamedParametersAggregatedTests {
@@ -21,7 +21,7 @@ class NamedParametersAggregatedTests {
}
static int f_missing_comma(a
- [b = 42] /// 02: compile-time error
+ [b = 42] //# 02: compile-time error
) => a;
var _handler = null;
@@ -29,7 +29,7 @@ class NamedParametersAggregatedTests {
// Expect compile-time error as no default values
// are allowed in closure type.
void InstallCallback(void cb({String msg
- : null /// 03: compile-time error
+ : null //# 03: compile-time error
})) {
_handler = cb;
}
@@ -40,16 +40,16 @@ class NamedParametersAggregatedTests {
main() {
// Expect compile-time error due to missing comma in function definition.
NamedParametersAggregatedTests.f_missing_comma(10
- , 25 /// 02: continued
+ , 25 //# 02: continued
);
// Expect compile-time erorr due to duplicate named argument.
NamedParametersAggregatedTests.F31(10, b:25
- , b:35 /// 04: compile-time error
+ , b:35 //# 04: compile-time error
);
// Expect compile-time error due to missing positional argument.
- Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e is NoSuchMethodError); /// 05: static type warning
+ Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e is NoSuchMethodError); //# 05: static type warning
new TypeTester<Callback>();

Powered by Google App Engine
This is Rietveld 408576698