| Index: pkg/analyzer/test/reflective_tests.dart
|
| diff --git a/pkg/analyzer/test/reflective_tests.dart b/pkg/analyzer/test/reflective_tests.dart
|
| index 8af96747b11841b154c89ee5b03144503ba79d8a..f2f05af50d0d7a121f674f6bf1c4e8c0c89b1c94 100644
|
| --- a/pkg/analyzer/test/reflective_tests.dart
|
| +++ b/pkg/analyzer/test/reflective_tests.dart
|
| @@ -11,15 +11,6 @@ import 'package:unittest/unittest.dart';
|
|
|
|
|
| /**
|
| - * A marker annotation used to instruct dart2js to keep reflection information
|
| - * for the annotated classes.
|
| - */
|
| -class ReflectiveTestCase {
|
| - const ReflectiveTestCase();
|
| -}
|
| -
|
| -
|
| -/**
|
| * Runs test methods existing in the given [type].
|
| *
|
| * Methods with names starting with `test` are run using [test] function.
|
| @@ -65,14 +56,6 @@ void runReflectiveTests(Type type) {
|
| }
|
|
|
|
|
| -_runTest(ClassMirror classMirror, Symbol symbol) {
|
| - InstanceMirror instanceMirror = classMirror.newInstance(new Symbol(''), []);
|
| - return _invokeSymbolIfExists(instanceMirror, #setUp).then(
|
| - (_) => instanceMirror.invoke(symbol, []).reflectee).whenComplete(
|
| - () => _invokeSymbolIfExists(instanceMirror, #tearDown));
|
| -}
|
| -
|
| -
|
| Future _invokeSymbolIfExists(InstanceMirror instanceMirror, Symbol symbol) {
|
| var invocationResult = null;
|
| try {
|
| @@ -85,3 +68,26 @@ Future _invokeSymbolIfExists(InstanceMirror instanceMirror, Symbol symbol) {
|
| return new Future.value(invocationResult);
|
| }
|
| }
|
| +
|
| +
|
| +_runTest(ClassMirror classMirror, Symbol symbol) {
|
| + InstanceMirror instanceMirror = classMirror.newInstance(new Symbol(''), []);
|
| + return _invokeSymbolIfExists(
|
| + instanceMirror,
|
| + #setUp).then(
|
| + (_) =>
|
| + instanceMirror.invoke(
|
| + symbol,
|
| + [
|
| + ]).reflectee).whenComplete(
|
| + () => _invokeSymbolIfExists(instanceMirror, #tearDown));
|
| +}
|
| +
|
| +
|
| +/**
|
| + * A marker annotation used to instruct dart2js to keep reflection information
|
| + * for the annotated classes.
|
| + */
|
| +class ReflectiveTestCase {
|
| + const ReflectiveTestCase();
|
| +}
|
|
|