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

Unified Diff: tests/lib/async/future_or_non_strong_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/lib/async/future_or_non_strong_test.dart
diff --git a/tests/lib/async/future_or_non_strong_test.dart b/tests/lib/async/future_or_non_strong_test.dart
index ec951155298d3746b0dc7b09f597cc837424b0a4..5bb1ece6f1dceaa461adcc0539487c548b7bcdea 100644
--- a/tests/lib/async/future_or_non_strong_test.dart
+++ b/tests/lib/async/future_or_non_strong_test.dart
@@ -7,7 +7,6 @@
import 'dart:async';
import 'package:expect/expect.dart';
-
typedef void FunTakes<T>(T x);
typedef T FunReturns<T>();
@@ -20,7 +19,6 @@ main() {
Expect.isTrue(new Future.value(499) is FutureOr<int>);
Expect.isTrue(new Future.value(499) is FutureOr<String>);
-
void foo(FutureOr x) {}
Expect.isTrue(foo is FunTakes<dynamic>);
@@ -36,7 +34,6 @@ main() {
Expect.isTrue(foo is FunTakes<FutureOr<FutureOr<int>>>);
Expect.isTrue(foo is FunTakes<FutureOr<FutureOr<String>>>);
-
FutureOr bar() => 499;
Expect.isTrue(bar is FunReturns<dynamic>);
@@ -52,7 +49,6 @@ main() {
Expect.isTrue(bar is FunReturns<FutureOr<FutureOr<int>>>);
Expect.isTrue(bar is FunReturns<FutureOr<FutureOr<String>>>);
-
void foo2(FutureOr<String> x) {}
Expect.isTrue(foo2 is FunTakes<dynamic>);
@@ -68,7 +64,6 @@ main() {
Expect.isTrue(foo2 is FunTakes<FutureOr<FutureOr<int>>>);
Expect.isTrue(foo2 is FunTakes<FutureOr<FutureOr<String>>>);
-
FutureOr<int> bar2() => 499;
Expect.isTrue(bar2 is FunReturns<dynamic>);
@@ -84,7 +79,6 @@ main() {
Expect.isTrue(bar2 is FunReturns<FutureOr<FutureOr<int>>>);
Expect.isTrue(bar2 is FunReturns<FutureOr<FutureOr<String>>>);
-
void foo3(String x) {}
Expect.isTrue(foo3 is FunTakes<dynamic>);
@@ -100,7 +94,6 @@ main() {
Expect.isTrue(foo3 is FunTakes<FutureOr<FutureOr<int>>>);
Expect.isTrue(foo3 is FunTakes<FutureOr<FutureOr<String>>>);
-
int bar3() => 499;
Expect.isTrue(bar3 is FunReturns<dynamic>);

Powered by Google App Engine
This is Rietveld 408576698