Index: tests/lib_strong/mirrors/class_mirror_location_test.dart |
diff --git a/tests/lib_strong/mirrors/class_mirror_location_test.dart b/tests/lib_strong/mirrors/class_mirror_location_test.dart |
index c6aa596e0b831abd74fecb97e5f32f696645911c..496b27455e6b666e875dc0ca806e84bdc9fce316 100644 |
--- a/tests/lib_strong/mirrors/class_mirror_location_test.dart |
+++ b/tests/lib_strong/mirrors/class_mirror_location_test.dart |
@@ -10,15 +10,21 @@ import "package:expect/expect.dart"; |
part 'class_mirror_location_other.dart'; |
class ClassInMainFile {} |
- class SpaceIndentedInMainFile {} |
- class TabIndentedInMainFile {} |
+ |
+class SpaceIndentedInMainFile {} |
+ |
+class TabIndentedInMainFile {} |
abstract class AbstractClass {} |
+ |
typedef bool Predicate(num n); |
class M {} |
+ |
class S {} |
+ |
class MA extends S with M {} |
+ |
class MA2 = S with M; |
const metadata = 'metadata'; |
@@ -33,10 +39,11 @@ enum AnnotatedEnum { SALT, PEPPER } |
// We only check for a suffix of the uri because the test might be run from |
// any number of absolute paths. |
-expectLocation(DeclarationMirror mirror, String uriSuffix, int line, int column) { |
+expectLocation( |
+ DeclarationMirror mirror, String uriSuffix, int line, int column) { |
Uri uri = mirror.location.sourceUri; |
- Expect.isTrue(uri.toString().endsWith(uriSuffix), |
- "Expected suffix $uriSuffix in $uri"); |
+ Expect.isTrue( |
+ uri.toString().endsWith(uriSuffix), "Expected suffix $uriSuffix in $uri"); |
Expect.equals(line, mirror.location.line, "line"); |
Expect.equals(column, mirror.location.column, "column"); |
} |
@@ -56,7 +63,7 @@ main() { |
expectLocation(reflectClass(WithMetadata), mainSuffix, 26, 1); |
expectLocation(reflectClass(Enum), mainSuffix, 29, 1); |
expectLocation(reflectClass(AnnotatedEnum), mainSuffix, 31, 1); |
- |
+ |
// Another part. |
expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1); |
expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3); |