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

Unified Diff: tests/lib/mirrors/operator_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/operator_test.dart
diff --git a/tests/lib/mirrors/operator_test.dart b/tests/lib/mirrors/operator_test.dart
index f28f3af79d8efe6c4e75e6052e4f9a565e03b279..91eb1bccfa09ee8b175923654634ea9e9d04d9bd 100644
--- a/tests/lib/mirrors/operator_test.dart
+++ b/tests/lib/mirrors/operator_test.dart
@@ -42,9 +42,9 @@ void main() {
ClassMirror cls = reflectClass(Foo);
var operators = new Map<Symbol, MethodMirror>();
var operatorParameters = new Map<Symbol, List>();
- var returnTypes = new Map<Symbol, Mirror>();
- for (MethodMirror method in cls.declarations.values.where(
- (d) => d is MethodMirror && !d.isConstructor)) {
+ var returnTypes = new Map<Symbol, Mirror>();
+ for (MethodMirror method in cls.declarations.values
+ .where((d) => d is MethodMirror && !d.isConstructor)) {
Expect.isTrue(method.isRegularMethod);
Expect.isTrue(method.isOperator);
Expect.isFalse(method.isGetter);
@@ -60,27 +60,27 @@ void main() {
}
const String OPERATORS = '{'
-'%: Method(s(%) in s(Foo)), '
-'&: Method(s(&) in s(Foo)), '
-'*: Method(s(*) in s(Foo)), '
-'+: Method(s(+) in s(Foo)), '
-'-: Method(s(-) in s(Foo)), '
-'/: Method(s(/) in s(Foo)), '
-'<: Method(s(<) in s(Foo)), '
-'<<: Method(s(<<) in s(Foo)), '
-'<=: Method(s(<=) in s(Foo)), '
-'==: Method(s(==) in s(Foo)), '
-'>: Method(s(>) in s(Foo)), '
-'>=: Method(s(>=) in s(Foo)), '
-'>>: Method(s(>>) in s(Foo)), '
-'[]: Method(s([]) in s(Foo)), '
-'[]=: Method(s([]=) in s(Foo)), '
-'^: Method(s(^) in s(Foo)), '
-'unary-: Method(s(unary-) in s(Foo)), '
-'|: Method(s(|) in s(Foo)), '
-'~: Method(s(~) in s(Foo)), '
-'~/: Method(s(~/) in s(Foo))'
-'}';
+ '%: Method(s(%) in s(Foo)), '
+ '&: Method(s(&) in s(Foo)), '
+ '*: Method(s(*) in s(Foo)), '
+ '+: Method(s(+) in s(Foo)), '
+ '-: Method(s(-) in s(Foo)), '
+ '/: Method(s(/) in s(Foo)), '
+ '<: Method(s(<) in s(Foo)), '
+ '<<: Method(s(<<) in s(Foo)), '
+ '<=: Method(s(<=) in s(Foo)), '
+ '==: Method(s(==) in s(Foo)), '
+ '>: Method(s(>) in s(Foo)), '
+ '>=: Method(s(>=) in s(Foo)), '
+ '>>: Method(s(>>) in s(Foo)), '
+ '[]: Method(s([]) in s(Foo)), '
+ '[]=: Method(s([]=) in s(Foo)), '
+ '^: Method(s(^) in s(Foo)), '
+ 'unary-: Method(s(unary-) in s(Foo)), '
+ '|: Method(s(|) in s(Foo)), '
+ '~: Method(s(~) in s(Foo)), '
+ '~/: Method(s(~/) in s(Foo))'
+ '}';
const String DYNAMIC = 'Type(s(dynamic), top-level)';
@@ -91,48 +91,48 @@ const String INT = 'Class(s(int) in s(dart.core), top-level)';
const String BOOL = 'Class(s(bool) in s(dart.core), top-level)';
const String PARAMETERS = '{'
-'%: [Parameter(s(a) in s(%), type = $FOO)], '
-'&: [Parameter(s(a) in s(&), type = $FOO)], '
-'*: [Parameter(s(a) in s(*), type = $FOO)], '
-'+: [Parameter(s(a) in s(+), type = $FOO)], '
-'-: [Parameter(s(a) in s(-), type = $FOO)], '
-'/: [Parameter(s(a) in s(/), type = $FOO)], '
-'<: [Parameter(s(a) in s(<), type = $FOO)], '
-'<<: [Parameter(s(a) in s(<<), type = $FOO)], '
-'<=: [Parameter(s(a) in s(<=), type = $FOO)], '
-'==: [Parameter(s(a) in s(==), type = $DYNAMIC)], '
-'>: [Parameter(s(a) in s(>), type = $FOO)], '
-'>=: [Parameter(s(a) in s(>=), type = $FOO)], '
-'>>: [Parameter(s(a) in s(>>), type = $FOO)], '
-'[]: [Parameter(s(a) in s([]), type = $INT)], '
-'[]=: [Parameter(s(a) in s([]=), type = $INT), '
- 'Parameter(s(b) in s([]=), type = $FOO)], '
-'^: [Parameter(s(a) in s(^), type = $FOO)], '
-'unary-: [], '
-'|: [Parameter(s(a) in s(|), type = $FOO)], '
-'~: [], '
-'~/: [Parameter(s(a) in s(~/), type = $FOO)]'
-'}';
+ '%: [Parameter(s(a) in s(%), type = $FOO)], '
+ '&: [Parameter(s(a) in s(&), type = $FOO)], '
+ '*: [Parameter(s(a) in s(*), type = $FOO)], '
+ '+: [Parameter(s(a) in s(+), type = $FOO)], '
+ '-: [Parameter(s(a) in s(-), type = $FOO)], '
+ '/: [Parameter(s(a) in s(/), type = $FOO)], '
+ '<: [Parameter(s(a) in s(<), type = $FOO)], '
+ '<<: [Parameter(s(a) in s(<<), type = $FOO)], '
+ '<=: [Parameter(s(a) in s(<=), type = $FOO)], '
+ '==: [Parameter(s(a) in s(==), type = $DYNAMIC)], '
+ '>: [Parameter(s(a) in s(>), type = $FOO)], '
+ '>=: [Parameter(s(a) in s(>=), type = $FOO)], '
+ '>>: [Parameter(s(a) in s(>>), type = $FOO)], '
+ '[]: [Parameter(s(a) in s([]), type = $INT)], '
+ '[]=: [Parameter(s(a) in s([]=), type = $INT), '
+ 'Parameter(s(b) in s([]=), type = $FOO)], '
+ '^: [Parameter(s(a) in s(^), type = $FOO)], '
+ 'unary-: [], '
+ '|: [Parameter(s(a) in s(|), type = $FOO)], '
+ '~: [], '
+ '~/: [Parameter(s(a) in s(~/), type = $FOO)]'
+ '}';
const String RETURN_TYPES = '{'
-'%: $FOO, '
-'&: $FOO, '
-'*: $FOO, '
-'+: $FOO, '
-'-: $FOO, '
-'/: $FOO, '
-'<: $FOO, '
-'<<: $FOO, '
-'<=: $FOO, '
-'==: $BOOL, '
-'>: $FOO, '
-'>=: $FOO, '
-'>>: $FOO, '
-'[]: $FOO, '
-'[]=: $DYNAMIC, '
-'^: $FOO, '
-'unary-: $FOO, '
-'|: $FOO, '
-'~: $FOO, '
-'~/: $FOO'
-'}';
+ '%: $FOO, '
+ '&: $FOO, '
+ '*: $FOO, '
+ '+: $FOO, '
+ '-: $FOO, '
+ '/: $FOO, '
+ '<: $FOO, '
+ '<<: $FOO, '
+ '<=: $FOO, '
+ '==: $BOOL, '
+ '>: $FOO, '
+ '>=: $FOO, '
+ '>>: $FOO, '
+ '[]: $FOO, '
+ '[]=: $DYNAMIC, '
+ '^: $FOO, '
+ 'unary-: $FOO, '
+ '|: $FOO, '
+ '~: $FOO, '
+ '~/: $FOO'
+ '}';

Powered by Google App Engine
This is Rietveld 408576698