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

Unified Diff: tests/language/async_test.dart

Issue 2768073002: Format all multitests (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/async_test.dart
diff --git a/tests/language/async_test.dart b/tests/language/async_test.dart
index e85cece6bc573350dae13fd831d97f29f690ad19..c982df51e59b088cecd62e9420c44d3adcbc75e7 100644
--- a/tests/language/async_test.dart
+++ b/tests/language/async_test.dart
@@ -2,12 +2,11 @@
// 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.
-
import 'package:expect/expect.dart';
import 'dart:async';
-topLevelFunction() async { }
+topLevelFunction() async {}
Future<int> topLevelWithParameter(int a) async {
return 7 + a;
@@ -37,7 +36,7 @@ class A {
int someMethod(int param1, int param2, int param3) async => _x + param2; //# type-mismatch3: static type warning, dynamic type error
int get getter async { return 5 + _x; } //# type-mismatch4: static type warning, dynamic type error
- operator+(A other) async {
+ operator +(A other) async {
return new A(_x + other._x);
}
@@ -54,7 +53,6 @@ class B {
set dontDoThat(value) async {} // //# setter1: compile-time error
}
-
main() {
var asyncReturn;
@@ -100,7 +98,8 @@ main() {
var z = 8;
return p2 + z + foo;
}
- asyncReturn = bar(1,2);
+
+ asyncReturn = bar(1, 2);
Expect.isTrue(asyncReturn is Future);
asyncReturn.then((int result) => Expect.equals(result, 27));
@@ -109,6 +108,7 @@ main() {
aa(int shadowP1) async {
return foo + z + p3 + shadowP1;
}
+
return aa(6);
};
asyncReturn = moreNesting(1, "ignore", 2);

Powered by Google App Engine
This is Rietveld 408576698