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

Unified Diff: tests/lib_strong/mirrors/other_declarations_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_strong/mirrors/other_declarations_location_test.dart
diff --git a/tests/lib_strong/mirrors/other_declarations_location_test.dart b/tests/lib_strong/mirrors/other_declarations_location_test.dart
index 6a119c3d8bbe8acfedc929d8d6b002d32320a7af..39c188abc1e91b9bfb9c628bd511ad35d815fc45 100644
--- a/tests/lib_strong/mirrors/other_declarations_location_test.dart
+++ b/tests/lib_strong/mirrors/other_declarations_location_test.dart
@@ -16,17 +16,18 @@ class C<S, @metadata T> {
final b = 2;
static var c;
static final d = 4;
- @metadata var e;
+ @metadata
+ var e;
List<C> f;
}
-
// 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");
}
@@ -45,11 +46,11 @@ main() {
// Type variables.
expectLocation(reflectClass(C).declarations[#S], mainSuffix, 14, 9);
expectLocation(reflectClass(C).declarations[#T], mainSuffix, 14, 12);
-
+
// Libraries.
expectLocation(reflectClass(C).owner, mainSuffix, 5, 1);
expectLocation(reflectClass(ClassInLibraryWithoutDeclaration).owner,
- "library_without_declaration.dart", 1, 1);
+ "library_without_declaration.dart", 1, 1);
expectLocation(reflectClass(ClassInLibraryWithAnnotatedDeclaration).owner,
- "library_with_annotated_declaration.dart", 5, 1);
+ "library_with_annotated_declaration.dart", 5, 1);
}

Powered by Google App Engine
This is Rietveld 408576698