Index: tests/lib_strong/mirrors/mirrors_nsm_mismatch_test.dart |
diff --git a/tests/lib_strong/mirrors/mirrors_nsm_mismatch_test.dart b/tests/lib_strong/mirrors/mirrors_nsm_mismatch_test.dart |
index 5c63ca1dfc266914a28c9668bd1db9bb05ab043c..813faad5eafde5ef8ce29aaf092db5a8632c4afc 100644 |
--- a/tests/lib_strong/mirrors/mirrors_nsm_mismatch_test.dart |
+++ b/tests/lib_strong/mirrors/mirrors_nsm_mismatch_test.dart |
@@ -8,6 +8,7 @@ import 'dart:mirrors'; |
import 'mirrors_nsm_test.dart'; |
topLevelMethod({missing}) {} |
+ |
class C { |
C.constructor({missing}); |
factory C.redirecting({missing}) = C.constructor; |
@@ -19,36 +20,33 @@ main() { |
var mirrors = currentMirrorSystem(); |
var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mistatch); |
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')); |
} |