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

Unified Diff: tests/lib_strong/mirrors/instance_members_easier_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/instance_members_easier_test.dart
diff --git a/tests/lib_strong/mirrors/instance_members_easier_test.dart b/tests/lib_strong/mirrors/instance_members_easier_test.dart
index 530fa425ea2df643dedf19e37ac935ee21f17660..4a9fe66afeada5549518be4c1d036bb8bd2bc541 100644
--- a/tests/lib_strong/mirrors/instance_members_easier_test.dart
+++ b/tests/lib_strong/mirrors/instance_members_easier_test.dart
@@ -17,14 +17,17 @@ class EasierSuperclass {
shuper() {}
static staticShuper() {}
}
+
class EasierMixin {
mixin() {}
static staticMixin() {}
}
+
class EasierMixinApplication extends EasierSuperclass with EasierMixin {
application() {}
static staticApplication() {}
}
+
class Derived extends EasierMixinApplication {
derived() {}
static staticDerived() {}
@@ -33,56 +36,56 @@ class Derived extends EasierMixinApplication {
main() {
ClassMirror cm = reflectClass(declarations_model.Class);
- Expect.setEquals(
- [#+,
- #instanceVariable,
- const Symbol('instanceVariable='),
- #instanceGetter,
- const Symbol('instanceSetter='),
- #instanceMethod,
- #-,
- #inheritedInstanceVariable,
- const Symbol('inheritedInstanceVariable='),
- #inheritedInstanceGetter,
- const Symbol('inheritedInstanceSetter='),
- #inheritedInstanceMethod,
- #hashCode,
- #runtimeType,
- #==,
- #noSuchMethod,
- #toString],
- selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
+ Expect.setEquals([
+ #+,
+ #instanceVariable,
+ const Symbol('instanceVariable='),
+ #instanceGetter,
+ const Symbol('instanceSetter='),
+ #instanceMethod,
+ #-,
+ #inheritedInstanceVariable,
+ const Symbol('inheritedInstanceVariable='),
+ #inheritedInstanceGetter,
+ const Symbol('inheritedInstanceSetter='),
+ #inheritedInstanceMethod,
+ #hashCode,
+ #runtimeType,
+ #==,
+ #noSuchMethod,
+ #toString
+ ], selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
// Filter out private to avoid implementation-specific members of Object.
- Expect.setEquals(
- [#instanceVariable,
- const Symbol('instanceVariable='),
- #inheritedInstanceVariable,
- const Symbol('inheritedInstanceVariable=')],
- selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate && dm.isSynthetic));
+ Expect.setEquals([
+ #instanceVariable,
+ const Symbol('instanceVariable='),
+ #inheritedInstanceVariable,
+ const Symbol('inheritedInstanceVariable=')
+ ], selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate && dm.isSynthetic));
cm = reflectClass(Derived);
- Expect.setEquals(
- [#derived,
- #shuper,
- #mixin,
- #application,
- #hashCode,
- #runtimeType,
- #==,
- #noSuchMethod,
- #toString],
- selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
+ Expect.setEquals([
+ #derived,
+ #shuper,
+ #mixin,
+ #application,
+ #hashCode,
+ #runtimeType,
+ #==,
+ #noSuchMethod,
+ #toString
+ ], selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
cm = reflectClass(EasierMixinApplication);
- Expect.setEquals(
- [#shuper,
- #mixin,
- #application,
- #hashCode,
- #runtimeType,
- #==,
- #noSuchMethod,
- #toString],
- selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
+ Expect.setEquals([
+ #shuper,
+ #mixin,
+ #application,
+ #hashCode,
+ #runtimeType,
+ #==,
+ #noSuchMethod,
+ #toString
+ ], selectKeys(cm.instanceMembers, (dm) => !dm.isPrivate));
}

Powered by Google App Engine
This is Rietveld 408576698