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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 9597015: Update Timer API to take the callback as the last parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « tools/testing/dart/test_runner.dart ('k') | utils/tests/string_encoding/benchmark_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index ea17f5dfc8b821b80e0706d852897af920b1366b..59c3cf5e7681548fefe4d741267a570c81caa62d 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -245,7 +245,7 @@ class StandardTestSuite implements TestSuite {
}
doDone();
}
- new Timer(enqueueCachedTests, 0);
+ new Timer(0, enqueueCachedTests);
}
}
}
@@ -956,12 +956,12 @@ class JUnitTestSuite implements TestSuite {
if (configuration['component'] != 'dartc') {
// Do nothing. Asynchronously report that the suite is enqueued.
- new Timer((timerUnused){ doDone(); }, 0);
+ new Timer(0, (timerUnused){ doDone(); });
return;
}
RegExp pattern = configuration['selectors']['dartc'];
if (!pattern.hasMatch('junit_tests')) {
- new Timer((timerUnused){ doDone(); }, 0);
+ new Timer(0, (timerUnused){ doDone(); });
return;
}
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | utils/tests/string_encoding/benchmark_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698