Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/filter/date_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void main() {

it('should accept various locales', () {

String defaultLocale = Intl.defaultLocale;
try {
Intl.defaultLocale = 'de';
expect(date(noon, "medium")).
Expand All @@ -78,7 +79,7 @@ void main() {
expect(date(noon, "medium")).
toEqual('sept. 3, 2010 12:05:08 PM');
} finally {
Intl.defaultLocale = 'en';
Intl.defaultLocale = defaultLocale;
}
});
});
Expand Down