Commit Graph

15 Commits

Author SHA1 Message Date
André Bargull 8bed4d442d Use assert-lib: intl402/NumberFormat 2017-05-04 21:14:46 +02:00
André Bargull d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
André Bargull 3291704eb2
Fix multiple test errors
Tests doesn't use async functionality and don't call $DONE, so remove
"async" flag:
- src/params/error/async-gen-named-func-expr.template
- test/language/expressions/async-generator/params-named-dflt-abrupt.js
- test/language/expressions/async-generator/params-named-dflt-ref-later.js
- test/language/expressions/async-generator/params-named-dflt-ref-self.js

Intl.PluralRules.prototype is no longer a Intl.Prototype instance:
- test/intl402/PluralRules/prototype/prototype.js

Intl.PluralRules throws an error when called as a function:
- test/intl402/PluralRules/undefined-newtarget-throws.js

Module namespace objects call OrdinaryDelete for symbol properties:
- test/language/module-code/namespace/internals/delete-non-exported.js

Async generators no longer retrieves "done" property twice:
- src/async-generators/yield-star-async-next.case
- src/async-generators/yield-star-async-return.case
- src/async-generators/yield-star-async-throw.case

Minor units of CLF is 4, so we need to test with maximumFractionDigits=3
to get an error:
- test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js

DateTimeFormat.prototype.formatToParts length property was changed from
0 to 1:
- test/intl402/DateTimeFormat/prototype/formatToParts/length.js

minimumSignificantDigits and maximumSignificantDigits properties are
only retrieved once:
- test/intl402/NumberFormat/11.1.1_32.js
2017-04-06 15:30:13 -04:00
Daniel Ehrenberg a9d9ab1a51
Add tests for some NumberFormat options edge cases
Closes #888

These tests are regression tests for V8 failures at top of tree,
https://bugs.chromium.org/p/v8/issues/detail?id=6015
https://bugs.chromium.org/p/v8/issues/detail?id=6016

Neither issue is present in JSC or SpiderMonkey. They are fixed
by the V8 patch
https://codereview.chromium.org/2717613005
2017-03-23 11:50:33 -07:00
Leo Balter 6c20a250f2 Add references to fixed tests for NumberFormat operations (#874)
Ref #856
Ref #857
Ref tc39/ecma402#128
2017-03-13 10:47:30 -07:00
vabr-g 42ebb3a9ab Add test for NumberFormat default minimumSignificantDigits (#864) 2017-03-01 16:39:57 -05:00
Viktor 58b326f0c4 fix for the wrong test of Intl.NumberFormat (ToRawPrecision) (#857)
1) (123.44500) == 123.444999999999993179
2) (123.44500).toPrecision(5) === "123.44" gives correct value in Chrome and Firefox;

Ref https://github.com/tc39/ecma402/issues/128
2017-03-01 16:14:33 -05:00
Viktor 9fd3b582c7 fix for the wrong test of Intl.NumberFormat (ToRawFixed) (#856)
Note:
12344501000000000487815444678311936 === 12344501000000000000000000000000000 for binary64 floating points;

Ref https://github.com/tc39/ecma402/issues/128
2017-03-01 16:14:00 -05:00
André Bargull 76320ad18d Update tests when Intl constructor is called as a function
https://github.com/tc39/ecma402/issues/57
https://github.com/tc39/ecma402/pull/84
2017-02-22 18:05:34 +01:00
Zibi Braniecki 28fc809f3e Remove BYR currency code which has been removed from ISO 4217 (#818) 2017-01-09 14:27:23 -08:00
jungshik 6a0f1189eb Drop 3 tests testing an obsolete Ecma402 v1 spec (#807)
The following three tests check an obsolete provision in Ecma 402
v1 regarding Intl.{Collator,DateTimeFormat,NumberFormat} constructor
called as a function.

Collator/10.1.2.1_4.js
DateTimeFormat/12.1.2.1_4.js
NumberFormat/11.1.2.1_4.js
2016-12-21 11:11:39 -08:00
Zibi Braniecki cac55f2999 NumberFormat.prototype.formatToParts tests, part 1 (#744) 2016-08-15 15:23:34 -07:00
Leonardo Balter bf782c8421 s/id/esid
Fixes #477
2016-02-22 09:47:42 -05:00
André Bargull 31a9036e9b Add coverage for 'name' property of Intl built-in functions 2016-02-12 18:58:57 +01:00
André Bargull 932bd1a12c Move intl tests to sub-folders 2015-07-31 17:12:08 +02:00