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

Unified Diff: tests/lib_strong/mirrors/generic_mixin_applications_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/generic_mixin_applications_test.dart
diff --git a/tests/lib_strong/mirrors/generic_mixin_applications_test.dart b/tests/lib_strong/mirrors/generic_mixin_applications_test.dart
index aac6e281fbe946789f48da1eab7a4b81a0629085..8a9fec7b76408deb4cb5c2103e0b0fa45197c1ee 100644
--- a/tests/lib_strong/mirrors/generic_mixin_applications_test.dart
+++ b/tests/lib_strong/mirrors/generic_mixin_applications_test.dart
@@ -11,7 +11,9 @@ import 'package:expect/expect.dart';
import 'generics_helper.dart';
class Super<S> {}
+
class Mixin<M> {}
+
class Nixim<N> {}
class NonGenericMixinApplication1 = Super with Mixin;
@@ -21,9 +23,11 @@ class GenericMixinApplication1<MA> = Super<MA> with Mixin<MA>;
class GenericMixinApplication2<MA> = Super<num> with Mixin<String>;
class NonGenericClass1 extends Super with Mixin {}
+
class NonGenericClass2 extends Super<num> with Mixin<String> {}
class GenericClass1<C> extends Super<C> with Mixin<C> {}
+
class GenericClass2<C> extends Super<num> with Mixin<String> {}
class GenericMultipleMixins<A, B, C> extends Super<A> with Mixin<B>, Nixim<C> {}
@@ -57,12 +61,13 @@ main() {
typeArguments(reflectClass(GenericClass2), []);
typeArguments(reflectClass(GenericMultipleMixins), []);
// Anonymous mixin applications have no type parameters or type arguments.
- typeArguments(reflectClass(NonGenericClass1).superclass.originalDeclaration, []);
- typeArguments(reflectClass(NonGenericClass2).superclass.originalDeclaration, []);
+ typeArguments(
+ reflectClass(NonGenericClass1).superclass.originalDeclaration, []);
+ typeArguments(
+ reflectClass(NonGenericClass2).superclass.originalDeclaration, []);
typeArguments(reflectClass(GenericClass1).superclass.originalDeclaration, []);
typeArguments(reflectClass(GenericClass2).superclass.originalDeclaration, []);
-
// Instantiations.
typeParameters(reflect(new NonGenericMixinApplication1()).type, []);
typeParameters(reflect(new NonGenericMixinApplication2()).type, []);
@@ -72,7 +77,8 @@ main() {
typeParameters(reflect(new NonGenericClass2()).type, []);
typeParameters(reflect(new GenericClass1<bool>()).type, [#C]);
typeParameters(reflect(new GenericClass2<bool>()).type, [#C]);
- typeParameters(reflect(new GenericMultipleMixins<bool, String, int>()).type, [#A, #B, #C]);
+ typeParameters(reflect(new GenericMultipleMixins<bool, String, int>()).type,
+ [#A, #B, #C]);
// Anonymous mixin applications have no type parameters or type arguments.
typeParameters(reflect(new NonGenericClass1()).type.superclass, []);
typeParameters(reflect(new NonGenericClass2()).type.superclass, []);
@@ -81,13 +87,16 @@ main() {
typeArguments(reflect(new NonGenericMixinApplication1()).type, []);
typeArguments(reflect(new NonGenericMixinApplication2()).type, []);
- typeArguments(reflect(new GenericMixinApplication1<bool>()).type, [reflectClass(bool)]);
- typeArguments(reflect(new GenericMixinApplication2<bool>()).type, [reflectClass(bool)]);
+ typeArguments(
+ reflect(new GenericMixinApplication1<bool>()).type, [reflectClass(bool)]);
+ typeArguments(
+ reflect(new GenericMixinApplication2<bool>()).type, [reflectClass(bool)]);
typeArguments(reflect(new NonGenericClass1()).type, []);
typeArguments(reflect(new NonGenericClass2()).type, []);
typeArguments(reflect(new GenericClass1<bool>()).type, [reflectClass(bool)]);
typeArguments(reflect(new GenericClass2<bool>()).type, [reflectClass(bool)]);
- typeArguments(reflect(new GenericMultipleMixins<bool, String, int>()).type, [reflectClass(bool), reflectClass(String), reflectClass(int)]);
+ typeArguments(reflect(new GenericMultipleMixins<bool, String, int>()).type,
+ [reflectClass(bool), reflectClass(String), reflectClass(int)]);
// Anonymous mixin applications have no type parameters or type arguments.
typeArguments(reflect(new NonGenericClass1()).type.superclass, []);
typeArguments(reflect(new NonGenericClass2()).type.superclass, []);

Powered by Google App Engine
This is Rietveld 408576698