| OLD | NEW |
| (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 * Tests date formatting and parsing using locale data read from the | |
| 7 * local file system. | |
| 8 */ | |
| 9 | |
| 10 #library('date_time_format_test'); | |
| 11 | |
| 12 #import('../date_format.dart'); | |
| 13 #import('../date_symbol_data_file.dart'); | |
| 14 #import('dart:io'); | |
| 15 #import('date_time_format_test_core.dart'); | |
| 16 #import('data_directory.dart'); | |
| 17 | |
| 18 main() { | |
| 19 // Initialize one locale just so we know what the list is. | |
| 20 initializeDateFormatting("en_US", dataDirectory).then(runEverything); | |
| 21 } | |
| 22 | |
| 23 void runEverything(_) { | |
| 24 // Initialize all locales and wait for them to finish before running tests. | |
| 25 var futures = DateFormat.allLocalesWithSymbols().map( | |
| 26 (locale) => initializeDateFormatting(locale, dataDirectory)); | |
| 27 Futures.wait(futures).then((results) => runDateTests()); | |
| 28 } | |
| OLD | NEW |