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

Unified Diff: tests/lib/mirrors/generics_dynamic_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/mirrors/generics_dynamic_test.dart
diff --git a/tests/lib/mirrors/generics_dynamic_test.dart b/tests/lib/mirrors/generics_dynamic_test.dart
index 6a4ec3ac938c981fc073c60b42594a4cab0bff68..eb912854cae4596b570d3b2a3cf4f57d96c7eec1 100644
--- a/tests/lib/mirrors/generics_dynamic_test.dart
+++ b/tests/lib/mirrors/generics_dynamic_test.dart
@@ -9,11 +9,14 @@ import 'dart:mirrors';
import 'package:expect/expect.dart';
class A<T> {}
-class B<T extends A> extends A implements C{
+
+class B<T extends A> extends A implements C {
A m(A a) {}
A field;
}
-class C<S,T> {}
+
+class C<S, T> {}
+
class D extends A<int> {}
main() {
@@ -49,7 +52,7 @@ main() {
Expect.isFalse(cInstance.isOriginalDeclaration);
Expect.isFalse(cNestedInstance.isOriginalDeclaration);
Expect.isFalse(cTypeArgument.isOriginalDeclaration);
-
+
Expect.isTrue(aDecl.typeArguments.isEmpty);
Expect.isTrue(dInstance.typeArguments.isEmpty);
Expect.equals(dynamicMirror, aInstance.typeArguments.single);
@@ -65,5 +68,5 @@ main() {
Expect.equals(dynamicMirror, cInstance.typeArguments.last);
Expect.equals(dynamicMirror, cNestedInstance.typeArguments.last);
Expect.equals(dynamicMirror, cTypeArgument.typeArguments.first);
- Expect.equals(dynamicMirror, cTypeArgument.typeArguments.last);
-}
+ Expect.equals(dynamicMirror, cTypeArgument.typeArguments.last);
+}

Powered by Google App Engine
This is Rietveld 408576698