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

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

Issue 3014593002: Use generic functions in zones. (Closed)
Patch Set: Added changes missing from patch set #2 Created 3 years, 3 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 0a32721152a041d7025b4a00f8da1369259a5b8b..198f9e3eeff75e0c51e6b39ccccca084d0a750fd 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -1012,8 +1012,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