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

Unified Diff: tests/lib_strong/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_strong/mirrors/new_instance_with_type_arguments_test.dart
diff --git a/tests/lib_strong/mirrors/new_instance_with_type_arguments_test.dart b/tests/lib_strong/mirrors/new_instance_with_type_arguments_test.dart
index 2885bbbda578e91db8d8999d8f11cd4d69211c5d..aa7df8a5ae0e612c460adb5468f3bd5822b2dd99 100644
--- a/tests/lib_strong/mirrors/new_instance_with_type_arguments_test.dart
+++ b/tests/lib_strong/mirrors/new_instance_with_type_arguments_test.dart
@@ -11,7 +11,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;
}
@@ -38,12 +40,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