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

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

Issue 2893893002: Use generic functions in zones. (Closed)
Patch Set: Fix more tests. Created 3 years, 4 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/dom/templates/html/impl/impl_Window.darttemplate ('k') | utils/compiler/create_snapshot_entry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index 890b02acccbc1a2d53776d0deb90f887a5f3632d..91082bbbaf05c2ae8a49f15a663af6b9299c0e90 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -1019,8 +1019,9 @@ class CommandQueue {
// If a command is part of many TestCases we set the timeout to be
// the maximum over all [TestCase.timeout]s. At some point, we might
// eliminate [TestCase.timeout] completely and move it to [Command].
- int timeout =
- testCases.map((TestCase test) => test.timeout).fold(0, math.max);
+ int timeout = testCases
+ .map((TestCase test) => test.timeout)
+ .fold(0, (int a, b) => math.max(a, b));
if (_verbose) {
print('Running "${command.displayName}" command: $command');
« no previous file with comments | « tools/dom/templates/html/impl/impl_Window.darttemplate ('k') | utils/compiler/create_snapshot_entry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698