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

Unified Diff: tests/language_strong/function_literals_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/function_literals_test.dart
diff --git a/tests/language_strong/function_literals_test.dart b/tests/language_strong/function_literals_test.dart
index 92c2ee2ca7718eb16f8e2e8673408b8090a0ae47..40dc333ea4698f2b350ee6a2d5cfe09c7c1ce369 100644
--- a/tests/language_strong/function_literals_test.dart
+++ b/tests/language_strong/function_literals_test.dart
@@ -49,30 +49,56 @@ class FunctionLiteralsTest {
}
void testArrowArrow() {
- checkIntFuncFunction(84, (x) => (y) => x+y, 42);
- checkIntFuncFunction(84, (int x) => (y) => x+y, 42);
- checkIntFuncFunction(84, (x) => (y) => x+y, 42);
- checkIntFuncFunction(84, (int x) => (y) => x+y, 42);
+ checkIntFuncFunction(84, (x) => (y) => x + y, 42);
+ checkIntFuncFunction(84, (int x) => (y) => x + y, 42);
+ checkIntFuncFunction(84, (x) => (y) => x + y, 42);
+ checkIntFuncFunction(84, (int x) => (y) => x + y, 42);
}
void testArrowBlock() {
- checkIntFuncFunction(84, (x) => (y) { return x+y; }, 42);
- checkIntFuncFunction(84, (int x) => (y) { return x+y; }, 42);
+ checkIntFuncFunction(
+ 84,
+ (x) => (y) {
+ return x + y;
+ },
+ 42);
+ checkIntFuncFunction(
+ 84,
+ (int x) => (y) {
+ return x + y;
+ },
+ 42);
}
void testBlock() {
- checkIntFunction(42, (x) { return x; }, 42);
- checkIntFunction(42, (int x) { return x; }, 42);
+ checkIntFunction(42, (x) {
+ return x;
+ }, 42);
+ checkIntFunction(42, (int x) {
+ return x;
+ }, 42);
}
void testBlockArrow() {
- checkIntFuncFunction(84, (x) { return (y) => x+y; }, 42);
- checkIntFuncFunction(84, (int x) { return (y) => x+y; }, 42);
+ checkIntFuncFunction(84, (x) {
+ return (y) => x + y;
+ }, 42);
+ checkIntFuncFunction(84, (int x) {
+ return (y) => x + y;
+ }, 42);
}
void testBlockBlock() {
- checkIntFuncFunction(84, (x) { return (y) { return x+y; }; }, 42);
- checkIntFuncFunction(84, (int x) { return (y) { return x+y; }; }, 42);
+ checkIntFuncFunction(84, (x) {
+ return (y) {
+ return x + y;
+ };
+ }, 42);
+ checkIntFuncFunction(84, (int x) {
+ return (y) {
+ return x + y;
+ };
+ }, 42);
}
void testFunctionRef() {
@@ -83,7 +109,6 @@ class FunctionLiteralsTest {
}
}
-
main() {
FunctionLiteralsTest.testMain();
}

Powered by Google App Engine
This is Rietveld 408576698