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

Unified Diff: tests/lib/mirrors/new_instance_with_type_arguments_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/new_instance_with_type_arguments_test.dart
diff --git a/tests/lib/mirrors/new_instance_with_type_arguments_test.dart b/tests/lib/mirrors/new_instance_with_type_arguments_test.dart
index 5fc242a9d32349267ecfd10c84dd709823f56a06..07e2239ab6fc6ba1bbd3f1ff63457feb0d8cf22d 100644
--- a/tests/lib/mirrors/new_instance_with_type_arguments_test.dart
+++ b/tests/lib/mirrors/new_instance_with_type_arguments_test.dart
@@ -12,7 +12,9 @@ import 'package:expect/expect.dart';
class A<T> {
Type get t => T;
}
+
class B extends A<int> {}
+
class C<S> extends A<num> {
Type get s => S;
}
@@ -39,12 +41,9 @@ main() {
var reflective_a_int =
cmB.superclass.newInstance(const Symbol(''), []).reflectee;
- var reflective_a_dynamic =
- cmA.newInstance(const Symbol(''), []).reflectee;
- var reflective_b =
- cmB.newInstance(const Symbol(''), []).reflectee;
- var reflective_c_dynamic =
- cmC.newInstance(const Symbol(''), []).reflectee;
+ var reflective_a_dynamic = cmA.newInstance(const Symbol(''), []).reflectee;
+ var reflective_b = cmB.newInstance(const Symbol(''), []).reflectee;
+ var reflective_c_dynamic = cmC.newInstance(const Symbol(''), []).reflectee;
Expect.equals(int, reflective_a_int.t);
Expect.equals(dynamic, reflective_a_dynamic.t);

Powered by Google App Engine
This is Rietveld 408576698