Index: tests/lib_strong/mirrors/instantiate_abstract_class_test.dart |
diff --git a/tests/lib_strong/mirrors/instantiate_abstract_class_test.dart b/tests/lib_strong/mirrors/instantiate_abstract_class_test.dart |
index e86e534534c90bc09a43301646cc6e2cc00eca38..057b40bad5a509a7766d05086c5c301e4cdc7803 100644 |
--- a/tests/lib_strong/mirrors/instantiate_abstract_class_test.dart |
+++ b/tests/lib_strong/mirrors/instantiate_abstract_class_test.dart |
@@ -7,15 +7,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'); |
}); |
} |
@@ -24,7 +24,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. |
}); |
} |