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

Side by Side Diff: pkg/intl/test/date_time_format_local_test_stub.dart

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Test date formatting and parsing using locale data which is available 6 * Test date formatting and parsing using locale data which is available
7 * directly in the program as a constant. 7 * directly in the program as a constant.
8 */ 8 */
9 9
10 library date_time_format_test; 10 library date_time_format_test;
11 11
12 import 'dart:async'; 12 import 'dart:async';
13 import 'package:intl/intl.dart'; 13 import 'package:intl/intl.dart';
14 import 'package:intl/date_time_patterns.dart'; 14 import 'package:intl/date_time_patterns.dart';
15 import 'package:intl/date_symbol_data_local.dart'; 15 import 'package:intl/date_symbol_data_local.dart';
16 import 'date_time_format_test_core.dart'; 16 import 'date_time_format_test_core.dart';
17 17
18 runWith([Function getSubset]) { 18 runWith([Function getSubset]) {
19 // Initialize one locale just so we know what the list is. 19 // Initialize one locale just so we know what the list is.
20 // Also, note that we take the list of locales as a function so that we don't 20 // Also, note that we take the list of locales as a function so that we don't
21 // evaluate it until after we know that all the locales are available. 21 // evaluate it until after we know that all the locales are available.
22 initializeDateFormatting("en_US",null).then( 22 initializeDateFormatting("en_US",null).then(
23 (_) => runEverything(getSubset)); 23 (_) => runEverything(getSubset));
24 } 24 }
25 25
26 void runEverything(Function getSubset) { 26 void runEverything(Function getSubset) {
27 // Initialize all locales and wait for them to finish before running tests. 27 // Initialize all locales and wait for them to finish before running tests.
28 var futures = DateFormat.allLocalesWithSymbols() 28 var futures = DateFormat.allLocalesWithSymbols()
29 .mappedBy((locale) => initializeDateFormatting(locale, null)) 29 .map((locale) => initializeDateFormatting(locale, null))
30 .toList(); 30 .toList();
31 Future.wait(futures).then((results) => runDateTests(getSubset())); 31 Future.wait(futures).then((results) => runDateTests(getSubset()));
32 } 32 }
OLDNEW
« no previous file with comments | « pkg/intl/test/date_time_format_http_request_test.dart ('k') | pkg/intl/test/date_time_format_test_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698