Index: tests/lib/mirrors/instantiate_abstract_class_test.dart |
diff --git a/tests/lib/mirrors/instantiate_abstract_class_test.dart b/tests/lib/mirrors/instantiate_abstract_class_test.dart |
index 261fede70923f1bf9074e212d28ce09984c9b336..125d064f9e5b2106e35ac09e32610f11f19c1c4e 100644 |
--- a/tests/lib/mirrors/instantiate_abstract_class_test.dart |
+++ b/tests/lib/mirrors/instantiate_abstract_class_test.dart |
@@ -8,15 +8,15 @@ library test.instantiate_abstract_class; |
import 'dart:mirrors'; |
import 'package:expect/expect.dart'; |
- |
assertInstanitationErrorOnGenerativeConstructors(classMirror) { |
classMirror.declarations.values.forEach((decl) { |
if (decl is! MethodMirror) return; |
if (!decl.isGenerativeConstructor) return; |
var args = new List(decl.parameters.length); |
- Expect.throws(() => classMirror.newInstance(decl.constructorName, args), |
- (e) => e is AbstractClassInstantiationError, |
- '${decl.qualifiedName} should have failed'); |
+ Expect.throws( |
+ () => classMirror.newInstance(decl.constructorName, args), |
+ (e) => e is AbstractClassInstantiationError, |
+ '${decl.qualifiedName} should have failed'); |
}); |
} |
@@ -25,7 +25,7 @@ runFactoryConstructors(classMirror) { |
if (decl is! MethodMirror) return; |
if (!decl.isFactoryConstructor) return; |
var args = new List(decl.parameters.length); |
- classMirror.newInstance(decl.constructorName, args); // Should not throw. |
+ classMirror.newInstance(decl.constructorName, args); // Should not throw. |
}); |
} |