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

Unified Diff: tests/lib_strong/mirrors/inherited_metadata_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/inherited_metadata_test.dart
diff --git a/tests/lib_strong/mirrors/inherited_metadata_test.dart b/tests/lib_strong/mirrors/inherited_metadata_test.dart
index c0671f944da492b0e50e4333399b6bef0f91b4d4..db7b7de954b8b15bdf71d4c0229d6c1fa51efa08 100644
--- a/tests/lib_strong/mirrors/inherited_metadata_test.dart
+++ b/tests/lib_strong/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);
}
-

Powered by Google App Engine
This is Rietveld 408576698