| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // or 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 read via an http request | |
| 7 * to a server. | |
| 8 */ | |
| 9 | |
| 10 library date_time_format_http_request_test; | |
| 11 | |
| 12 import 'dart:html'; | |
| 13 import 'package:unittest/html_config.dart'; | |
| 14 import 'package:unittest/unittest.dart'; | |
| 15 import 'package:intl/date_symbol_data_http_request.dart'; | |
| 16 import 'date_time_format_test_stub.dart'; | |
| 17 | |
| 18 main() { | |
| 19 useHtmlConfiguration(); | |
| 20 var url = "http://localhost:${window.location.port}" | |
| 21 "/packages/intl/src/data/dates/"; | |
| 22 | |
| 23 test("Initializing a locale that needs fallback", () { | |
| 24 initializeDateFormatting("de_DE", url).then(expectAsync((_) => true)); | |
| 25 }); | |
| 26 | |
| 27 runWith(smallSetOfLocales, url, initializeDateFormatting); | |
| 28 } | |
| OLD | NEW |