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

Unified Diff: tests/lib_strong/mirrors/instantiate_abstract_class_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_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.
});
}

Powered by Google App Engine
This is Rietveld 408576698