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

Unified Diff: pkg/intl/test/date_time_format_local_test_stub.dart

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. Created 8 years, 1 month 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: pkg/intl/test/date_time_format_local_test_stub.dart
diff --git a/pkg/intl/test/date_time_format_local_test_stub.dart b/pkg/intl/test/date_time_format_local_test_stub.dart
index 800dac450c40c40f3fb0a49cdc739dfacece2dfd..6a5225d75ee4a4740048da076985724f389db915 100644
--- a/pkg/intl/test/date_time_format_local_test_stub.dart
+++ b/pkg/intl/test/date_time_format_local_test_stub.dart
@@ -25,7 +25,8 @@ runWith([Function getSubset]) {
void runEverything(Function getSubset) {
// Initialize all locales and wait for them to finish before running tests.
- var futures = DateFormat.allLocalesWithSymbols().mappedBy(
- (locale) => initializeDateFormatting(locale, null));
+ var futures = DateFormat.allLocalesWithSymbols()
+ .mappedBy((locale) => initializeDateFormatting(locale, null))
+ .toList();
Futures.wait(futures).then((results) => runDateTests(getSubset()));
}

Powered by Google App Engine
This is Rietveld 408576698