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

Unified Diff: tests/language/async_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/language/async_switch_test.dart ('k') | tests/language/async_throw_in_catch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/async_test.dart
diff --git a/tests/language/async_test.dart b/tests/language/async_test.dart
index c982df51e59b088cecd62e9420c44d3adcbc75e7..e85cece6bc573350dae13fd831d97f29f690ad19 100644
--- a/tests/language/async_test.dart
+++ b/tests/language/async_test.dart
@@ -2,11 +2,12 @@
// 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;
@@ -36,7 +37,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);
}
@@ -53,6 +54,7 @@ class B {
set dontDoThat(value) async {} // //# setter1: compile-time error
}
+
main() {
var asyncReturn;
@@ -98,8 +100,7 @@ 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));
@@ -108,7 +109,6 @@ main() {
aa(int shadowP1) async {
return foo + z + p3 + shadowP1;
}
-
return aa(6);
};
asyncReturn = moreNesting(1, "ignore", 2);
« no previous file with comments | « tests/language/async_switch_test.dart ('k') | tests/language/async_throw_in_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698