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

Unified Diff: tests/lib_strong/mirrors/mixin_simple_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_simple_test.dart
diff --git a/tests/lib_strong/mirrors/mixin_simple_test.dart b/tests/lib_strong/mirrors/mixin_simple_test.dart
index 7edcbe423b1c476aa4d4a2449650f50e04fd2cee..f9f0915cd0ff46ea41e2311efa05b5379dbd3e32 100644
--- a/tests/lib_strong/mirrors/mixin_simple_test.dart
+++ b/tests/lib_strong/mirrors/mixin_simple_test.dart
@@ -9,30 +9,35 @@ import 'dart:mirrors';
import 'package:expect/expect.dart';
class Super {}
+
class Mixin {}
+
class Mixin2 {}
class Class extends Super with Mixin {}
+
class MultipleMixins extends Class with Mixin2 {}
main() {
+ 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(Mixin2), reflectClass(MultipleMixins).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(Mixin2),
- reflectClass(MultipleMixins).superclass.mixin);
- Expect.equals(reflectClass(Class),
- 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