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

Unified Diff: tests/lib_strong/mirrors/mixin_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/mixin_test.dart
diff --git a/tests/lib_strong/mirrors/mixin_test.dart b/tests/lib_strong/mirrors/mixin_test.dart
index 91566a1086a6dc9ef01589889b1374c4e46eb58c..d55d5eb073c004de556fc45325df48d564502eb9 100644
--- a/tests/lib_strong/mirrors/mixin_test.dart
+++ b/tests/lib_strong/mirrors/mixin_test.dart
@@ -9,37 +9,43 @@ import 'dart:mirrors';
import 'package:expect/expect.dart';
class Super {}
+
class Mixin {}
+
class Mixin2 {}
+
class Mixin3 {}
class MixinApplication = Super with Mixin;
+
class Class extends Super with Mixin {}
+
class MultipleMixins extends Super with Mixin, Mixin2, Mixin3 {}
main() {
- Expect.equals(reflectClass(Mixin),
- reflectClass(MixinApplication).mixin);
- Expect.equals(reflectClass(Super),
- reflectClass(MixinApplication).superclass.mixin);
-
- Expect.equals(reflectClass(Class),
- reflectClass(Class).mixin);
- Expect.equals(reflectClass(Mixin),
- reflectClass(Class).superclass.mixin);
- Expect.equals(reflectClass(Super),
- reflectClass(Class).superclass.superclass.mixin);
-
- Expect.equals(reflectClass(MultipleMixins),
- reflectClass(MultipleMixins).mixin);
- Expect.equals(reflectClass(Mixin3),
- reflectClass(MultipleMixins).superclass.mixin);
+ Expect.equals(reflectClass(Mixin), reflectClass(MixinApplication).mixin);
+ Expect.equals(
+ reflectClass(Super), reflectClass(MixinApplication).superclass.mixin);
+
+ Expect.equals(reflectClass(Class), reflectClass(Class).mixin);
+ Expect.equals(reflectClass(Mixin), reflectClass(Class).superclass.mixin);
+ Expect.equals(
+ reflectClass(Super), reflectClass(Class).superclass.superclass.mixin);
+
+ Expect.equals(
+ reflectClass(MultipleMixins), reflectClass(MultipleMixins).mixin);
+ Expect.equals(
+ reflectClass(Mixin3), reflectClass(MultipleMixins).superclass.mixin);
Expect.equals(reflectClass(Mixin2),
- reflectClass(MultipleMixins).superclass.superclass.mixin);
+ reflectClass(MultipleMixins).superclass.superclass.mixin);
Expect.equals(reflectClass(Mixin),
- reflectClass(MultipleMixins).superclass.superclass.superclass
- .mixin);
- Expect.equals(reflectClass(Super),
- reflectClass(MultipleMixins).superclass.superclass.superclass
- .superclass.mixin);
+ reflectClass(MultipleMixins).superclass.superclass.superclass.mixin);
+ Expect.equals(
+ reflectClass(Super),
+ reflectClass(MultipleMixins)
+ .superclass
+ .superclass
+ .superclass
+ .superclass
+ .mixin);
}

Powered by Google App Engine
This is Rietveld 408576698