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

Unified Diff: pkg/scheduled_test/lib/scheduled_test.dart

Issue 231603003: Fix an analyzer warning in scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « pkg/pkg.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/scheduled_test.dart
diff --git a/pkg/scheduled_test/lib/scheduled_test.dart b/pkg/scheduled_test/lib/scheduled_test.dart
index bba468707e2b4d8a359a8fbf63fc17383d8b72a8..9d7897a62dec03fa103ff9779108c4971b206b46 100644
--- a/pkg/scheduled_test/lib/scheduled_test.dart
+++ b/pkg/scheduled_test/lib/scheduled_test.dart
@@ -222,7 +222,7 @@ Function _setUpFn;
///
/// If [body] returns a [Future], that future will automatically be wrapped with
/// [wrapFuture].
-void test(String description, Future body()) =>
+void test(String description, body()) =>
_test(description, body, unittest.test);
/// Creates a new test case with the given description and body that will be the
@@ -232,10 +232,10 @@ void test(String description, Future body()) =>
///
/// If [body] returns a [Future], that future will automatically be wrapped with
/// [wrapFuture].
-void solo_test(String description, Future body()) =>
+void solo_test(String description, body()) =>
_test(description, body, unittest.solo_test);
-void _test(String description, Future body(), Function testFn) {
+void _test(String description, body(), Function testFn) {
maybeWrapFuture(future, description) {
if (future != null) wrapFuture(future, description);
}
@@ -309,7 +309,7 @@ Future schedule(fn(), [String description]) =>
/// be scheduled for [currentSchedule.onComplete] or
/// [currentSchedule.onException]. These tasks will be run after each test's
/// schedule is completed.
-void setUp(void setUpFn()) {
+void setUp(setUpFn()) {
_setUpScheduledTest(setUpFn);
}
« no previous file with comments | « pkg/pkg.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698