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

Unified Diff: tests/lib/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/mirrors/mixin_test.dart
diff --git a/tests/lib/mirrors/mixin_test.dart b/tests/lib/mirrors/mixin_test.dart
index 4a8109dc78b1514cecc0f4f9bf3c3f040e3dbf02..5563f4455a36c0f9c608379b5b263c661a5dd192 100644
--- a/tests/lib/mirrors/mixin_test.dart
+++ b/tests/lib/mirrors/mixin_test.dart
@@ -10,37 +10,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