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

Unified Diff: tests/lib/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/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.
});
}

Powered by Google App Engine
This is Rietveld 408576698