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

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

Issue 10917069: Async initialization for DateFormat (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * Test date formatting and parsing using locale data which is available
7 * directly in the program as a constant.*/
8
9 #library('date_time_format_test');
10
11 #import('../date_format.dart');
12 #import('../date_time_patterns.dart');
13 #import('../date_symbol_data_local.dart');
14 #import('date_time_format_test_core.dart');
15
16 main() {
17 // Initialize one locale just so we know what the list is.
18 initializeDateFormatting("en_US",null).then(runEverything);
19 }
20
21 void runEverything(_) {
22 // Initialize all locales and wait for them to finish before running tests.
23 var futures = DateFormat.allLocalesWithSymbols().map(
24 (locale) => initializeDateFormatting(locale, null));
25 Futures.wait(futures).then((results) => runDateTests());
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698