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

Unified Diff: tests/lib/mirrors/class_mirror_location_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/class_mirror_location_test.dart
diff --git a/tests/lib/mirrors/class_mirror_location_test.dart b/tests/lib/mirrors/class_mirror_location_test.dart
index ee82c832c53e5c9933a5b18577f413a979eabedf..95fe444b1c72f627278c0dbaa5cef2acfaf02bf8 100644
--- a/tests/lib/mirrors/class_mirror_location_test.dart
+++ b/tests/lib/mirrors/class_mirror_location_test.dart
@@ -33,10 +33,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 +57,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);

Powered by Google App Engine
This is Rietveld 408576698