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

Unified Diff: tests/lib/mirrors/method_mirror_properties_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/method_mirror_properties_test.dart
diff --git a/tests/lib/mirrors/method_mirror_properties_test.dart b/tests/lib/mirrors/method_mirror_properties_test.dart
index 954171572087e114b040d9c003c2b73c990d2bda..0e5bcc85d5a614d13e63429a5da7e77fc84bdf40 100644
--- a/tests/lib/mirrors/method_mirror_properties_test.dart
+++ b/tests/lib/mirrors/method_mirror_properties_test.dart
@@ -13,10 +13,11 @@ doNothing42() {}
int _x = 5;
int get topGetter => _x;
-void set topSetter(x) { _x = x; }
+void set topSetter(x) {
+ _x = x;
+}
abstract class AbstractC {
-
AbstractC();
void bar();
@@ -25,7 +26,6 @@ abstract class AbstractC {
}
abstract class C extends AbstractC {
-
static foo() {}
C();
@@ -48,8 +48,7 @@ checkKinds(method, kinds) {
main() {
// Top level functions should be static.
var closureMirror = reflect(doNothing42);
- checkKinds(closureMirror.function,
- [true, false, false, false, false]);
+ checkKinds(closureMirror.function, [true, false, false, false, false]);
var libraryMirror = reflectClass(C).owner;
checkKinds(libraryMirror.declarations[#topGetter],
[true, false, true, false, false]);
@@ -57,25 +56,24 @@ main() {
[true, false, false, true, false]);
var classMirror;
classMirror = reflectClass(C);
- checkKinds(classMirror.declarations[#foo],
- [true, false, false, false, false]);
- checkKinds(classMirror.declarations[#priv],
- [false, false, true, false, false]);
+ checkKinds(
+ classMirror.declarations[#foo], [true, false, false, false, false]);
+ checkKinds(
+ classMirror.declarations[#priv], [false, false, true, false, false]);
checkKinds(classMirror.declarations[const Symbol("priv=")],
[false, false, false, true, false]);
- checkKinds(classMirror.declarations[#C],
- [false, false, false, false, true]);
- checkKinds(classMirror.declarations[#C.other],
- [false, false, false, false, true]);
- checkKinds(classMirror.declarations[#C.other2],
- [false, false, false, false, true]);
+ checkKinds(classMirror.declarations[#C], [false, false, false, false, true]);
+ checkKinds(
+ classMirror.declarations[#C.other], [false, false, false, false, true]);
+ checkKinds(
+ classMirror.declarations[#C.other2], [false, false, false, false, true]);
classMirror = reflectClass(AbstractC);
- checkKinds(classMirror.declarations[#AbstractC],
- [false, false, false, false, true]);
- checkKinds(classMirror.declarations[#bar],
- [false, true, false, false, false]);
- checkKinds(classMirror.declarations[#priv],
- [false, true, true, false, false]);
+ checkKinds(
+ classMirror.declarations[#AbstractC], [false, false, false, false, true]);
+ checkKinds(
+ classMirror.declarations[#bar], [false, true, false, false, false]);
+ checkKinds(
+ classMirror.declarations[#priv], [false, true, true, false, false]);
checkKinds(classMirror.declarations[const Symbol("priv=")],
[false, true, false, true, false]);
}

Powered by Google App Engine
This is Rietveld 408576698