assertEquals(1, date.getUTCMonth());
assertEquals(4, date.getUTCDate());
-// Missing , in the input is not a problem any more.
-date = dtf.v8Parse('Feb 4 1974');
-assertEquals(1974, date.getUTCFullYear());
-assertEquals(1, date.getUTCMonth());
-assertEquals(4, date.getUTCDate());
+// Missing , in the pattern.
+assertEquals(undefined, dtf.v8Parse('Feb 4 1974'));
// Extra "th" after 4 in the pattern.
assertEquals(undefined, dtf.v8Parse('Feb 4th, 1974'));
timeZone: 'UTC'});
// Make sure we have pattern we expect (may change in the future).
-assertEquals('M/d/y, h:mm:ss a', dtf.resolved.pattern);
+assertEquals('M/d/y h:mm:ss a', dtf.resolved.pattern);
var date = dtf.v8Parse('2/4/74 12:30:42 pm');
assertEquals(1974, date.getUTCFullYear());
# BUG(2899): default locale for search fails on mac and on android.
'collator/default-locale': [['system == macos or arch == android_arm or arch == android_ia32', FAIL]],
+
+ # BUG(v8:3454).
+ 'date-format/parse-MMMdy': [FAIL],
+ 'date-format/parse-mdyhms': [FAIL],
+ 'number-format/parse-decimal': [FAIL],
+ 'number-format/parse-percent': [FAIL],
}], # ALWAYS
]
assertEquals(123.43, nf.v8Parse('123.43'));
assertEquals(123, nf.v8Parse('123'));
assertEquals(NaN, nf.v8Parse(NaN));
-
-// a misplaced comma without a decimal point is not tolerated any more.
-assertEquals(undefined, nf.v8Parse('123,23'));
+assertEquals(12323, nf.v8Parse('123,23'));
assertEquals(12323.456, nf.v8Parse('123,23.456'));
assertEquals(12323.456, nf.v8Parse('0000000123,23.456'));
assertEquals(-12323.456, nf.v8Parse('-123,23.456'));
assertEquals(1.2343, nf.v8Parse('123.43%'));
assertEquals(1.23, nf.v8Parse('123%'));
assertEquals(NaN, nf.v8Parse(NaN));
-
-// a misplaced comma without a decimal point is not tolerated any more.
-assertEquals(undefined, nf.v8Parse('123,23%'));
+assertEquals(123.23, nf.v8Parse('123,23%'));
assertEquals(123.23456, nf.v8Parse('123,23.456%'));
assertEquals(123.23456, nf.v8Parse('0000000123,23.456%'));
assertEquals(-123.23456, nf.v8Parse('-123,23.456%'));