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

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

Issue 23090005: Verify the locale when initializing dates over http (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
« no previous file with comments | « pkg/intl/lib/date_symbol_data_http_request.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // or details. All rights reserved. Use of this source code is governed by a 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. 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 read via an http request 6 * Test date formatting and parsing using locale data read via an http request
7 * to a server. 7 * to a server.
8 */ 8 */
9 9
10 library date_time_format_http_request_test; 10 library date_time_format_http_request_test;
11 11
12 import 'dart:html'; 12 import 'dart:html';
13 import 'package:unittest/html_config.dart'; 13 import 'package:unittest/html_config.dart';
14 import 'package:unittest/unittest.dart';
14 import 'package:intl/date_symbol_data_http_request.dart'; 15 import 'package:intl/date_symbol_data_http_request.dart';
15 import 'date_time_format_test_stub.dart'; 16 import 'date_time_format_test_stub.dart';
16 17
17 main() { 18 main() {
18 useHtmlConfiguration(); 19 useHtmlConfiguration();
19 var url = "http://localhost:${window.location.port}" 20 var url = "http://localhost:${window.location.port}"
20 "/root_dart/pkg/intl/lib/src/data/dates/"; 21 "/root_dart/pkg/intl/lib/src/data/dates/";
21 22
23 test("Initializing a locale that needs fallback", () {
24 initializeDateFormatting("de_DE", url).then(expectAsync1((_) => true));
25 });
26
22 runWith(smallSetOfLocales, url, initializeDateFormatting); 27 runWith(smallSetOfLocales, url, initializeDateFormatting);
23 } 28 }
OLDNEW
« no previous file with comments | « pkg/intl/lib/date_symbol_data_http_request.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698