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

Unified Diff: tests/lib/mirrors/mirrors_nsm_mismatch_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/mirrors_nsm_mismatch_test.dart
diff --git a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
index 9b92458a46e5e3603b7ee6845ddf46864d8e4d2a..6f2f188d7bac624135195631423c59b07a360f00 100644
--- a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
+++ b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
@@ -9,6 +9,7 @@ import 'dart:mirrors';
import 'mirrors_nsm_test.dart';
topLevelMethod({missing}) {}
+
class C {
C.constructor({missing});
factory C.redirecting({missing}) = C.constructor;
@@ -20,36 +21,33 @@ main() {
var mirrors = currentMirrorSystem();
var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mismatch);
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, [], {#extra: 1}),
- () => topLevelMethod(extra: 1));
+ () => topLevelMethod(extra: 1));
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, ['positional']),
- () => topLevelMethod('positional'));
+ () => topLevelMethod('positional'));
var classMirror = reflectClass(C);
- expectMatchingErrors(() => classMirror.newInstance(#constructor, [],
- {#extra: 1}),
- () => new C.constructor(extra: 1));
- expectMatchingErrors(() => classMirror.newInstance(#redirecting, [],
- {#extra: 1}),
- () => new C.redirecting(extra: 1));
- expectMatchingErrors(() => classMirror.invoke(#staticMethod, [],
- {#extra: 1}),
- () => C.staticMethod(extra: 1));
- expectMatchingErrors(() => classMirror.newInstance(#constructor,
- ['positional']),
- () => new C.constructor('positional'));
- expectMatchingErrors(() => classMirror.newInstance(#redirecting,
- ['positional']),
- () => new C.redirecting('positional'));
- expectMatchingErrors(() => classMirror.invoke(#staticMethod,
- ['positional']),
- () => C.staticMethod('positional'));
+ expectMatchingErrors(
+ () => classMirror.newInstance(#constructor, [], {#extra: 1}),
+ () => new C.constructor(extra: 1));
+ expectMatchingErrors(
+ () => classMirror.newInstance(#redirecting, [], {#extra: 1}),
+ () => new C.redirecting(extra: 1));
+ expectMatchingErrors(() => classMirror.invoke(#staticMethod, [], {#extra: 1}),
+ () => C.staticMethod(extra: 1));
+ expectMatchingErrors(
+ () => classMirror.newInstance(#constructor, ['positional']),
+ () => new C.constructor('positional'));
+ expectMatchingErrors(
+ () => classMirror.newInstance(#redirecting, ['positional']),
+ () => new C.redirecting('positional'));
+ expectMatchingErrors(() => classMirror.invoke(#staticMethod, ['positional']),
+ () => C.staticMethod('positional'));
var instanceMirror = reflect(new C.constructor());
- expectMatchingErrors(() => instanceMirror.invoke(#instanceMethod, [],
- {#extra: 1}),
- () => instanceMirror.reflectee.instanceMethod(extra: 1));
- expectMatchingErrors(() => instanceMirror.invoke(#instanceMethod,
- ['positional']),
- () => instanceMirror.reflectee
- .instanceMethod('positional'));
+ expectMatchingErrors(
+ () => instanceMirror.invoke(#instanceMethod, [], {#extra: 1}),
+ () => instanceMirror.reflectee.instanceMethod(extra: 1));
+ expectMatchingErrors(
+ () => instanceMirror.invoke(#instanceMethod, ['positional']),
+ () => instanceMirror.reflectee.instanceMethod('positional'));
}

Powered by Google App Engine
This is Rietveld 408576698