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

Unified Diff: tests/lib_strong/mirrors/parameter_annotation_mirror_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/parameter_annotation_mirror_test.dart
diff --git a/tests/lib_strong/mirrors/parameter_annotation_mirror_test.dart b/tests/lib_strong/mirrors/parameter_annotation_mirror_test.dart
index be104e4b006f0c6975e1c89b197f21d46fc79669..817d741082bffd6d5c865c52c6bdbab275fc92a1 100644
--- a/tests/lib_strong/mirrors/parameter_annotation_mirror_test.dart
+++ b/tests/lib_strong/mirrors/parameter_annotation_mirror_test.dart
@@ -15,33 +15,32 @@ class ParameterAnnotation {
class Foo {
Foo(@ParameterAnnotation("vogel") p) {}
Foo.named(@ParameterAnnotation("hamster") p) {}
- Foo.named2(@ParameterAnnotation("hamster") p,
- @ParameterAnnotation("wurm") p2) {}
+ Foo.named2(
+ @ParameterAnnotation("hamster") p, @ParameterAnnotation("wurm") p2) {}
f1(@ParameterAnnotation("hest") p) {}
f2(@ParameterAnnotation("hest") @ParameterAnnotation("fisk") p) {}
f3(a, @ParameterAnnotation("fugl") p) {}
- f4(@ParameterAnnotation("fisk") a,
- {@ParameterAnnotation("hval") p}) {}
- f5(@ParameterAnnotation("fisk") a,
- [@ParameterAnnotation("hval") p]) {}
- f6({@ParameterAnnotation("fisk") z,
- @ParameterAnnotation("hval") p}) {}
+ f4(@ParameterAnnotation("fisk") a, {@ParameterAnnotation("hval") p}) {}
+ f5(@ParameterAnnotation("fisk") a, [@ParameterAnnotation("hval") p]) {}
+ f6({@ParameterAnnotation("fisk") z, @ParameterAnnotation("hval") p}) {}
set s1(@ParameterAnnotation("cheval") p) {}
}
-expectAnnotations(Type type, Symbol method, int parameterIndex,
- List<String> expectedValues) {
+expectAnnotations(
+ Type type, Symbol method, int parameterIndex, List<String> expectedValues) {
MethodMirror mirror = reflectClass(type).declarations[method];
ParameterMirror parameter = mirror.parameters[parameterIndex];
List<InstanceMirror> annotations = parameter.metadata;
Expect.equals(annotations.length, expectedValues.length,
- "wrong number of parameter annotations");
+ "wrong number of parameter annotations");
for (int i = 0; i < annotations.length; i++) {
- Expect.equals(expectedValues[i], annotations[i].reflectee.value,
- "annotation #$i of parameter #$parameterIndex "
- "of $type.$method.");
+ Expect.equals(
+ expectedValues[i],
+ annotations[i].reflectee.value,
+ "annotation #$i of parameter #$parameterIndex "
+ "of $type.$method.");
}
}

Powered by Google App Engine
This is Rietveld 408576698