Ujjwal Sharma
46515dcb19
intl: increase coverage for DateTimeFormat
...
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that checks for the default values.
2018-11-08 11:37:02 +05:30
Frank Tang
72f1cfa2ab
In en/ko/fr 'loose' may break more than normal in new CLDR version
2018-11-02 14:42:37 -04:00
Rick Waldron
314442498e
Fix Intl.Segmenter branding.js
...
Based on: 44fc8165d5/implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:45:34 -04:00
Frank Tang
d38e98d1f3
Fix formatToParts expectation @ RelativeTimeFormat
...
Fix wrong expectations of
Intl.RelativeTimeFormat.prototype.formatToParts
Add tests to cover "group", "decimal" and "fraction".
2018-10-31 12:38:29 -04:00
Rick Waldron
1fb8e8d22f
Merge branch 'segmenter-v8' of git://github.com/Ms2ger/test262 into Ms2ger-segmenter-v8
...
* 'segmenter-v8' of git://github.com/Ms2ger/test262:
Intl.Segmenter: Submit batch of V8 tests for the iterators.
# Conflicts:
# implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:35:49 -04:00
Leo Balter
38be52c525
fix usage of assertFalse
...
Fixes #1904
2018-10-26 14:34:24 -04:00
Ms2ger
72ab472057
Intl.Segmenter: Submit batch of V8 tests for the iterators.
2018-10-26 12:00:39 +02:00
Ms2ger
e847c6ebb0
Intl.Collator: Add a test for search and sort in German.
...
Ref: https://github.com/tc39/ecma402/issues/256 .
2018-10-25 13:08:08 -04:00
Ms2ger
0d07ed06c0
Intl.Segmenter: Submit batch of V8 tests for segment().
2018-10-25 10:15:11 -04:00
Ms2ger
0dcec72e34
Intl.ListFormat: Test the order of properties in the result of resolvedOptions().
2018-10-24 12:22:08 -04:00
Ms2ger
b8b93ec421
Intl.RelativeTimeFormat: Test the order of properties in the result of resolvedOptions().
2018-10-24 12:21:25 -04:00
Ms2ger
e1be2c8f8b
Intl.Segmenter: Add some tests for the constructor.
2018-10-24 10:13:31 -04:00
Ms2ger
52dfda893d
Intl.Segmenter: Test the order of properties in the result of resolvedOptions().
2018-10-24 09:54:54 -04:00
Rick Waldron
f247a5fe09
Revert "Improve assertion handling when comparison causes failure via coercion"
...
This reverts commit c49c356744
.
2018-10-23 17:21:17 -04:00
Rick Waldron
c49c356744
Improve assertion handling when comparison causes failure via coercion
2018-10-23 17:00:47 -04:00
Ms2ger
480f11f612
Intl.Segmenter: API tests for the segment method.
2018-10-23 16:18:05 -04:00
André Bargull
4d6e47bca9
Change RelativeTimeFormat -> ListFormat in ListFormat test
2018-10-17 13:35:58 -04:00
Ms2ger
fa16d7df3f
Intl: Add tests for table iteration order.
...
The order was defined in <https://github.com/tc39/ecma402/pull/279 >.
2018-10-17 12:59:38 -04:00
André Bargull
d3e5b818d9
Revert "remove "invalid" from invalid date of "cu" and "nu""
...
This reverts commit a1c3929c35
.
2018-10-17 07:46:46 -07:00
André Bargull
faed4fb089
Fix various test issues
2018-10-17 07:45:33 -07:00
Ms2ger
3113b90d55
Intl.RelativeTimeFormat: Add some basic tests for CanonicalizeLocaleList.
2018-10-15 13:41:46 -04:00
Ms2ger
e1d80f75c7
Intl.ListFormat: Add some basic tests for CanonicalizeLocaleList.
2018-10-15 13:41:46 -04:00
Ms2ger
a3d91b12e5
Intl.ListFormat: Add a test for unsupported options combinations.
...
This was changed in https://github.com/tc39/proposal-intl-list-format/pull/27 .
2018-10-15 13:40:52 -04:00
Frank Tang
e5ae99c6ca
Change tests to reflect https://github.com/tc39/proposal-intl-list-format/pull/27 ( #1860 )
...
* Changes Intl.ListFormat tests reflecting spec
Reflect https://github.com/tc39/proposal-intl-list-format/pull/27
while style:"narrow" and type is not "unit".
* add cases for throws
* remove commetns which cause lint error
2018-10-15 13:40:25 -04:00
Ujjwal Sharma
9dc33cc5b4
intl: fix mistyped test for array-like objects
2018-10-15 12:54:05 -04:00
Ms2ger
e527498bff
Intl.Segmenter: Some initial tests. ( #1844 )
2018-10-15 11:29:25 -04:00
Ms2ger
f6dcb4fc2b
Intl.ListFormat: Add some tests for the localeMatcher constructor option. ( #1855 )
...
This was added in https://github.com/tc39/proposal-intl-list-format/pull/25 .
I don't know how to test that the option has any effect, so this just checks
that it is read and verified.
2018-10-15 11:04:34 -04:00
Ms2ger
f61c4beaaa
Intl.RelativeTimeFormat: Fix copy/paste error in frontmatter. ( #1851 )
2018-10-09 11:30:01 -04:00
Adrian Heine né Lang
2234f0fc40
Fix syntax in test ( #1841 )
...
This was introduced in 6581e84949
.
2018-10-09 11:29:32 -04:00
Frank Tang
0866789361
numeric should be a boolean not a string
2018-10-05 18:43:50 -07:00
Ujjwal Sharma
f8e3a8ed11
Add let before variable declaration
2018-10-05 15:32:54 -04:00
Ujjwal Sharma
ec35b59e88
intl: increase coverage for the NumberFormat constructor
...
Increase the coverage for the constructor for Intl.NumberFormat by
ensuring that HasProperty(O, Pk) is properly called.
2018-10-05 15:32:54 -04:00
Ujjwal Sharma
f8e0bf6751
intl: fix dicey test case
2018-10-04 14:30:22 -04:00
Ujjwal Sharma
ff8b10c448
intl: increase coverage for the Intl.NumberFormat constructor
...
Increase coverge for the Intl.NumberFormat constructor by testing that
Get(O, P) and ToString(arg) are properly called.
2018-10-03 17:32:33 -04:00
Frank Tang
a1c3929c35
remove "invalid" from invalid date of "cu" and "nu"
2018-10-03 13:22:29 -04:00
Ujjwal Sharma
041d5acd5e
Update test to actually check properties
2018-10-03 13:13:58 -04:00
Ujjwal Sharma
de416c28c3
intl: increase coverage from the NumberFormat constructor
...
Improve coverage for the Intl.NumberFormat constructor by testing that
it accepts Array-like objects and handles them properly.
2018-10-03 13:13:58 -04:00
Ujjwal Sharma
cd55e30938
Update test to actually check properties
2018-10-03 11:07:06 -04:00
Ujjwal Sharma
af0f53bb40
intl: increase coverage for the NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat constructor by testing that
passing a string value to the Intl.NumberFormat constructor is
equivalent to passing an Array containing the same string value.
2018-10-03 11:07:06 -04:00
Rick Waldron
6581e84949
Intl.Locale: constructor-options-*.js fixups ( #1798 )
2018-10-03 10:24:38 -04:00
Rick Waldron
0ead0130ea
Intl.NumberFormat: cannot use assert.sameValue to compare object references.
2018-10-02 15:03:52 -04:00
Ujjwal Sharma
bba2429cad
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat constructor by adding tests
checking if appropriate default values are used.
2018-10-02 14:51:22 -04:00
Frank Tang
5de1831c48
Remove "ar-ma-u-ca-islamicc" test
2018-10-02 14:50:45 -04:00
Ujjwal Sharma
e9946587b9
Update test to include object and symbol
2018-10-02 14:49:00 -04:00
Ujjwal Sharma
bb7585bdaf
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat class contructor by adding
tests for checking that it calls ToObject on the options argument.
2018-10-02 14:49:00 -04:00
Ujjwal Sharma
24386286f1
Update filenames and fix failures
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
2ecd230b63
Update test to include object and symbol
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
5fe9773f44
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat class contructor by adding
tests for checking that it calls ToObject on the locales argument.
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
5fae9deb1f
intl: rework Intl.NumberFormat.prototype.formatToParts tests
...
Rework the available tests for Intl.NumberFormat.prototype.formatToParts
to improve consistency and readability.
2018-09-27 11:03:16 -04:00
Ujjwal Sharma
41bf0ee344
intl: add assertion to test that the result for default parameter
...
Add an assertion to the test for default parameters in Intl.NumberFormat's
method formatToParts checking that both the values are equal to the correct
result.
2018-09-27 11:00:55 -04:00
Rick Waldron
37190a1deb
Intl.Locale.prototype.numeric: the feature is not optional, therefore the tests are not optional
2018-09-26 11:06:03 -04:00
Ms2ger
584b651edf
Intl.Locale: Expect boolean values from the numeric getter.
...
The spec changed in <https://github.com/tc39/proposal-intl-locale/pull/59 >.
2018-09-26 11:03:22 -04:00
Ms2ger
5b0f7e19db
Intl.Locale: Refactor the tests for the numeric option.
2018-09-26 11:02:40 -04:00
André Bargull
3a1bcae4d1
Expect leading sign when the input is negative zero
2018-09-26 10:38:35 -04:00
André Bargull
d9f67d53d1
Move the extra precision tests into separate files
...
This will allow implementations to test the rest of the number formatting tests,
even if the extra precision support isn't implemented.
2018-09-26 10:38:35 -04:00
André Bargull
4bc96880a1
Add missing explicit ToString conversion for symbol values and ensure the expected NaN result is a (locale-dependent) string
2018-09-26 10:38:35 -04:00
Kevin Gibbons
89ec038cf2
remove some trailing commas in calls
2018-09-21 10:04:33 -04:00
Ujjwal Sharma
cdd91e2895
Improve ToNumber test for NumberFormat.format
2018-09-20 17:25:14 -04:00
Ujjwal Sharma
7a87bde265
intl: increase coverage for NumberFormat.format
...
Increase test coverage for Intl.NumberFormat.prototype.format by adding
a check for testing if it calls ToNumber (7.1.3) on its argument.
2018-09-20 17:25:14 -04:00
Ujjwal Sharma
a6412918d2
Simplify default value check of NumberFormat.format
2018-09-19 15:23:30 -04:00
Ujjwal Sharma
cbfa2c5f00
intl: increase coverage for NumberFormat
...
Increase coverage for Intl.NumberFormat by adding a test for format
checking it's default value.
2018-09-19 15:23:30 -04:00
Ujjwal Sharma
94cb047ab8
Update assert failure messages
2018-09-18 14:55:11 -04:00
Ujjwal Sharma
0c89259da5
intl: refactor tests for NumberFormat
2018-09-18 14:55:11 -04:00
Ujjwal Sharma
fec7982e09
Update test case description
2018-09-18 11:42:59 -04:00
Ujjwal Sharma
490f911ab6
Refactor value check for prop-desc
2018-09-18 11:42:59 -04:00
Ujjwal Sharma
24c29db550
Rename initial-value to configurable and add initial check to prop-desc
2018-09-18 11:42:59 -04:00
Ujjwal Sharma
e566c813b5
Add additional initial value tests
2018-09-18 11:42:59 -04:00
Ujjwal Sharma
c129ac8546
intl: improve coverage for Intl.NumberFormat
...
Add tests for Intl.NumberFormat.prototype[@@toStringTag].
2018-09-18 11:42:59 -04:00
Ms2ger
9271068a83
Intl: Add tests for throwing getters in options objects.
2018-09-18 11:39:47 -04:00
Ujjwal Sharma
12055caa1c
Add symbol to list of invalid targets
2018-09-17 15:59:58 -04:00
Ujjwal Sharma
db238a1abe
intl: improve coverage for Intl.NumberFormat
...
Add Intl.NumberFormat.prototype.formatToParts to the test
this-value-not-numberformat.js to check if a TypeError is thrown if the
"this" value for the function call isn't a valid NumberFormat object.
2018-09-17 15:59:58 -04:00
Ms2ger
c52f9cb769
Intl: Add tests for subclassing Locale, ListFormat and RelativeTimeFormat.
...
Fixes #1705 .
2018-09-07 15:53:10 +02:00
Ms2ger
f98218f831
Intl.ListFormat: Initial tests. ( #1679 )
2018-08-31 15:53:11 -04:00
Leo Balter
d901922690
Merge pull request #1682 from Ms2ger/rtf-supportedLocalesOf
...
Intl.RelativeTimeFormat: Add some more tests for supportedLocalesOf.
2018-08-17 18:04:34 -04:00
Leo Balter
f9d549329a
Merge pull request #1681 from Ms2ger/rtf-pl-fix
...
Intl.RelativeTimeFormat: Fix copy/paste errors in Polish tests.
2018-08-17 18:03:01 -04:00
Leo Balter
fcefbc7945
Merge pull request #1678 from Ms2ger/rtf-options-non-object
...
Intl.RelativeTimeFormat: Add some tests for non-object options arguments to the constructor.
2018-08-17 18:01:59 -04:00
André Bargull
cd101873ba
Fix expected values for 'quarter' in RelativeTimeFormat
2018-08-17 09:15:38 -07:00
Ms2ger
867b1ab87d
Intl.RelativeTimeFormat: Add some more tests for supportedLocalesOf.
2018-08-16 15:18:05 +02:00
Ms2ger
c82ea326a8
Intl.RelativeTimeFormat: Fix copy/paste errors in Polish tests.
2018-08-16 10:04:31 +02:00
Ms2ger
3161b18f71
Intl.RelativeTimeFormat: Add some tests for non-object options arguments to the constructor.
2018-08-14 17:43:32 +02:00
Rick Waldron
2c39868519
Merge remote-tracking branch 'ms2ger/rtf-supportedLocalesOf-basic'
...
* ms2ger/rtf-supportedLocalesOf-basic:
Intl.RelativeTimeFormat: Add a basic test for the functionality of supportedLocalesOf().
2018-08-10 15:36:01 -04:00
Rick Waldron
b893503aa8
Intl.DateTimeFormat: formatToParts nitpicking
2018-08-10 15:35:04 -04:00
Rick Waldron
c0e494eb6a
Merge branch 'patch-1' of git://github.com/phistuck/test262 into phistuck-patch-1
...
* 'patch-1' of git://github.com/phistuck/test262:
Added a legal part types test
2018-08-10 15:29:36 -04:00
Rick Waldron
3a517cb7a7
Merge remote-tracking branch 'ms2ger/rtf-unit-invalid-plausible'
...
* ms2ger/rtf-unit-invalid-plausible:
Intl.RelativeTimeFormat: Test some plausible but unsupported unit arguments.
2018-08-10 15:23:25 -04:00
Rick Waldron
e900c559b6
Merge remote-tracking branch 'ms2ger/rtf-tonumber'
...
* ms2ger/rtf-tonumber:
Intl.RelativeTimeFormat: Add tests for ToNumber() in format/ToParts().
2018-08-10 15:23:06 -04:00
Rick Waldron
ec31d06622
Merge remote-tracking branch 'ms2ger/rtf-formatToParts-type'
...
* ms2ger/rtf-formatToParts-type:
Intl.RelativeTimeFormat: Add tests for the type of formatToParts results.
2018-08-10 15:22:31 -04:00
Ms2ger
d15e0f58fc
Intl.RelativeTimeFormat: Test some plausible but unsupported unit arguments.
2018-08-10 17:46:39 +02:00
Ms2ger
fcc9fb974b
Intl.RelativeTimeFormat: Add tests for ToNumber() in format/ToParts().
2018-08-10 17:45:44 +02:00
Ms2ger
59bc1d6a2f
Intl.RelativeTimeFormat: Add a basic test for the functionality of supportedLocalesOf().
...
This is based on test/intl402/NumberFormat/supportedLocalesOf/basic.js.
2018-08-10 17:21:08 +02:00
Ms2ger
f38722c021
Intl.RelativeTimeFormat: Add tests for the type of formatToParts results.
2018-08-10 16:14:10 +02:00
Ms2ger
1d8e1c8c4f
Intl.RelativeTimeFormat: Add some tests for different styles in Polish.
...
This is interesting because Polish has different output for the "short" and
"narrow" styles.
2018-08-10 14:29:00 +02:00
Ms2ger
48d95ac3c4
Intl.RelativeTimeFormat: Add some tests for the 'narrow' style.
2018-08-04 11:10:19 -04:00
Ms2ger
1e8d69f0fa
Intl.RelativeTimeFormat: Test for grouping in long numbers.
...
The specification was changed to remove the useGrouping option in
<https://github.com/tc39/proposal-intl-relative-time/pull/81 >.
The change to remove the minimumIntegerDigits option in that PR was already
taken into account; this commit also removes the reference to the issue.
This also removes some commented-out code that was left in by accident.
2018-08-04 11:09:20 -04:00
Ms2ger
fd666c5048
Intl.RelativeTimeFormat: Add some en-US-specific tests for format/formatToParts.
2018-07-27 13:09:44 -04:00
Ms2ger
604df708b3
Intl.RelativeTimeFormat: Add some tests for format, formatToParts, and resolvedOptions.
2018-07-27 13:02:00 -04:00
Ms2ger
8e15f532e1
Intl.NumberFormat: Update another test for negative zero.
...
The specification was updated in https://github.com/tc39/ecma402/pull/232 .
2018-07-27 13:00:04 -04:00
Ms2ger
764eb4f8b9
Intl.RelativeTimeFormat: Add tests for invalid units in format/formatToParts.
2018-07-20 15:00:30 -04:00
PhistucK
2afcf1d3d9
Added a legal part types test
2018-07-20 11:12:10 +03:00
Ms2ger
94b1e80ab3
Intl.RelativeTimeFormat: Add a test for the return value of supportedLocalesOf()
2018-07-13 20:18:12 -04:00
Rick Waldron
23925f86a0
Merge pull request #1628 from Ms2ger/NumberFormat-negzero
...
Update the test for negative zero in NumberFormat.
2018-07-06 14:48:10 -04:00