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

Unified Diff: pkg/intl/test/intl_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 side-by-side diff with in-line comments
Download patch
Index: pkg/intl/test/intl_test.dart
===================================================================
--- pkg/intl/test/intl_test.dart (revision 11781)
+++ pkg/intl/test/intl_test.dart (working copy)
@@ -6,10 +6,16 @@
#import('../intl.dart');
#import('../../../pkg/unittest/unittest.dart');
+#import('../date_symbol_data_local.dart');
main() {
test('Set locale', (){
- var de = new Intl('de_DE');
- expect(de.locale, equals('de'));
+ // TODO(alanknight): We need to make the locale verification be on a per
+ // usage basis rather than once for the entire Intl object. The set of
+ // locales covered for messages may be different from that for date
+ // formatting.
+ initializeDateFormatting('de_DE', null).then((_) {
+ var de = new Intl('de_DE');
+ expect(de.locale, equals('de'));});
});
}

Powered by Google App Engine
This is Rietveld 408576698