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

Unified Diff: tests/lib_strong/mirrors/method_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_strong/mirrors/method_mirror_location_test.dart
diff --git a/tests/lib_strong/mirrors/method_mirror_location_test.dart b/tests/lib_strong/mirrors/method_mirror_location_test.dart
index 446f313877dbda7266b7bc911a50632d7017ecd1..8f4769549ff1979e9c01d12a05ee8c94fb199cbd 100644
--- a/tests/lib_strong/mirrors/method_mirror_location_test.dart
+++ b/tests/lib_strong/mirrors/method_mirror_location_test.dart
@@ -20,38 +20,39 @@ expectLocation(Mirror mirror, String uriSuffix, int line, int column) {
}
Expect.isTrue(methodMirror is MethodMirror);
Uri uri = methodMirror.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, methodMirror.location.line, "line");
Expect.equals(column, methodMirror.location.column, "column");
}
class ClassInMainFile {
-
ClassInMainFile();
method() {}
}
void topLevelInMainFile() {}
- spaceIdentedInMainFile() {}
- tabIdentedInMainFile() {}
+spaceIdentedInMainFile() {}
+tabIdentedInMainFile() {}
class HasImplicitConstructor {}
typedef bool Predicate(num n);
main() {
- localFunction(x) { return x; }
+ localFunction(x) {
+ return x;
+ }
String mainSuffix = 'method_mirror_location_test.dart';
String otherSuffix = 'method_mirror_location_other.dart';
// This file.
expectLocation(reflectClass(ClassInMainFile).declarations[#ClassInMainFile],
- mainSuffix, 31, 3);
- expectLocation(reflectClass(ClassInMainFile).declarations[#method],
- mainSuffix, 33, 3);
+ mainSuffix, 31, 3);
+ expectLocation(
+ reflectClass(ClassInMainFile).declarations[#method], mainSuffix, 33, 3);
expectLocation(reflect(topLevelInMainFile), mainSuffix, 36, 1);
expectLocation(reflect(spaceIdentedInMainFile), mainSuffix, 37, 3);
expectLocation(reflect(tabIdentedInMainFile), mainSuffix, 38, 2);
@@ -59,15 +60,17 @@ main() {
// Another part.
expectLocation(reflectClass(ClassInOtherFile).declarations[#ClassInOtherFile],
- otherSuffix, 9, 3);
- expectLocation(reflectClass(ClassInOtherFile).declarations[#method],
- otherSuffix, 11, 3);
+ otherSuffix, 9, 3);
+ expectLocation(
+ reflectClass(ClassInOtherFile).declarations[#method], otherSuffix, 11, 3);
expectLocation(reflect(topLevelInOtherFile), otherSuffix, 14, 1);
expectLocation(reflect(spaceIdentedInOtherFile), otherSuffix, 16, 3);
expectLocation(reflect(tabIdentedInOtherFile), otherSuffix, 18, 2);
// Synthetic methods.
Expect.isNull(reflectClass(HasImplicitConstructor)
- .declarations[#HasImplicitConstructor].location);
- Expect.isNull((reflectType(Predicate) as TypedefMirror).referent.callMethod.location);
+ .declarations[#HasImplicitConstructor]
+ .location);
+ Expect.isNull(
+ (reflectType(Predicate) as TypedefMirror).referent.callMethod.location);
}

Powered by Google App Engine
This is Rietveld 408576698