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

Unified Diff: tests/language_strong/named_parameters_with_conversions_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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_strong/named_parameters_with_conversions_test.dart
diff --git a/tests/language_strong/named_parameters_with_conversions_test.dart b/tests/language_strong/named_parameters_with_conversions_test.dart
index cf62331f8111c4fd41b0bca9c589631268c72d27..14849e64d04ae6c3a41960ffd7fdb8c1be498c41 100644
--- a/tests/language_strong/named_parameters_with_conversions_test.dart
+++ b/tests/language_strong/named_parameters_with_conversions_test.dart
@@ -8,7 +8,6 @@
import "package:expect/expect.dart";
-
Validate(tag, a, b) {
// tag encodes which parameters are passed in with values a: 111, b: 222.
if (tag == 'ab') {
@@ -30,7 +29,6 @@ Validate(tag, a, b) {
}
class HasMethod {
-
int calls;
HasMethod() : calls = 0 {}
@@ -47,7 +45,6 @@ class HasMethod {
}
class HasField {
-
int calls;
var foo, foo2;
@@ -74,9 +71,7 @@ class HasField {
}
}
-
class NamedParametersWithConversionsTest {
-
static checkException(thunk) {
bool threw = false;
try {
@@ -101,7 +96,7 @@ class NamedParametersWithConversionsTest {
checkException(() => a.foo()); // Too few arguments.
checkException(() => a.foo('abc', 1, 2, 3)); // Too many arguments.
checkException(() => a.foo2('c', c: 1)); // Bad name.
- checkException(() => a.foo2('c', a:111, c: 1)); // Bad name.
+ checkException(() => a.foo2('c', a: 111, c: 1)); // Bad name.
Expect.equals(7, a.calls);
}

Powered by Google App Engine
This is Rietveld 408576698