Index: pkg/i18n/test/date_time_format_test.dart |
=================================================================== |
--- pkg/i18n/test/date_time_format_test.dart (revision 10918) |
+++ pkg/i18n/test/date_time_format_test.dart (working copy) |
@@ -158,11 +158,8 @@ |
DateFormat.YEAR_MONTH]; |
for(int i = 0; i < formatsToTest.length; i++) { |
var skeleton = formatsToTest[i]; |
- var format = new DateFormat(skeleton, localeName); |
- var badPatterns = badSkeletons.map( |
- (x) => new DateFormat(x, format.locale).pattern); |
- |
- if (!badPatterns.some((x) => x == format.pattern)) { |
+ if (!badSkeletons.some((x) => x == skeleton)) { |
+ var format = new DateFormat(skeleton, localeName); |
var actualResult = format.format(date); |
var parsed = format.parse(actualResult); |
var thenPrintAgain = format.format(parsed); |
@@ -173,7 +170,7 @@ |
main() { |
test('Basic date format parsing', () { |
- var date_format = new DateFormat(); |
+ var date_format = new DateFormat("d"); |
expect( |
date_format.parsePattern("hh:mm:ss").map((x) => x.pattern), |
orderedEquals(["hh",":", "mm",":","ss"])); |