Index: tests/lib/mirrors/inherited_metadata_test.dart |
diff --git a/tests/lib/mirrors/inherited_metadata_test.dart b/tests/lib/mirrors/inherited_metadata_test.dart |
index c0671f944da492b0e50e4333399b6bef0f91b4d4..db7b7de954b8b15bdf71d4c0229d6c1fa51efa08 100644 |
--- a/tests/lib/mirrors/inherited_metadata_test.dart |
+++ b/tests/lib/mirrors/inherited_metadata_test.dart |
@@ -9,22 +9,17 @@ import 'dart:mirrors'; |
import 'package:expect/expect.dart'; |
- |
class RemoteClass { |
final String name; |
const RemoteClass([this.name]); |
} |
-class A { |
-} |
+class A {} |
@RemoteClass("ASF") |
-class B extends A { |
-} |
- |
-class C extends B { |
-} |
+class B extends A {} |
+class C extends B {} |
void main() { |
bool foundB = false; |
@@ -32,11 +27,11 @@ void main() { |
MirrorSystem mirrorSystem = currentMirrorSystem(); |
mirrorSystem.libraries.forEach((lk, l) { |
l.declarations.forEach((dk, d) { |
- if(d is ClassMirror) { |
+ if (d is ClassMirror) { |
d.metadata.forEach((md) { |
InstanceMirror metadata = md as InstanceMirror; |
// Metadata must not be inherited. |
- if(metadata.type == reflectClass(RemoteClass)) { |
+ if (metadata.type == reflectClass(RemoteClass)) { |
Expect.isFalse(foundB); |
Expect.equals(#B, d.simpleName); |
foundB = true; |
@@ -48,4 +43,3 @@ void main() { |
Expect.isTrue(foundB); |
} |
- |