Frank Yung-Fong Tang
565d7d5b7d
Remove unreasonable expectation
2019-02-14 15:23:30 -05:00
Frank Yung-Fong Tang
642929b2a3
correct value that matches languageAlias in
...
Per https://tc39.github.io/ecma402/#sec-canonicalizelanguagetag
6.2.3 CanonicalizeLanguageTag ( locale )
The CanonicalizeLanguageTag abstract operation returns the canonical and case-regularized form of the locale argument (which must be a String value that is a structurally valid Unicode BCP 47 Locale Identifier as verified by the IsStructurallyValidLanguageTag abstract operation). A conforming implementation shall take the steps specified in the “BCP 47 Language Tag to Unicode BCP 47 Locale Identifier” algorithm, from Unicode Technical Standard #35 LDML § 3.3.1 BCP 47 Language Tag Conversion.
And
http://unicode.org/reports/tr35/#BCP_47_Language_Tag_Conversion
"
2. If the BCP 47 primary language subtag matches the type attribute of a languageAlias element in Supplemental Data, replace the language subtag with the replacement value.
If there are additional subtags in the replacement value, add them to the result, but only if there is no corresponding subtag already in the tag.
"
and
https://www.unicode.org/repos/cldr/trunk/common/supplemental/supplementalMetadata.xml
...
<languageAlias type="aar" replacement="aa" reason="overlong"/>
<!-- [Afar] -->
...
<languageAlias type="ces" replacement="cs" reason="overlong"/>
<!-- [Czech] -->
...
<languageAlias type="heb" replacement="he" reason="overlong"/>
<!-- [Hebrew] -->
2019-02-14 15:07:54 -05:00
Frank Yung-Fong Tang
ea31876c06
correct values matches type of languageAlias
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang
ac45b6befe
add back missed data
...
get all the test data from constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang
f2bc5fd0a3
split from likely-subtags-grandfathered.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang
47efdac804
split
...
Split from intl402/Locale/constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang
b30d3013dc
Remove getCanonicalLocales
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang
8f713575e9
Move testing of getCanonicalLocales out of Locale
...
Remove all the assertion of result of getCanonicalLocales from Locale directory
and put them under Intl/getCanonicalLocales directory.
2019-02-14 15:07:31 -05:00
Ross Kirsling
a066af90ea
Remove errant tab character. ( #2058 )
2019-02-04 12:03:46 -07:00
Timothy Gu
e39604fa41
Fix missing ) ( #2059 )
2019-01-31 10:49:27 -07:00
Frank Yung-Fong Tang
c390306921
add check for "line" throws RangeError
2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang
619f7cdad1
fix line number
2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang
806dc970c0
fix line number
2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang
12a044b1d8
fix line number
2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang
39b561c60c
fix line number
2019-01-30 10:08:50 -05:00
Frank Tang
0460c52013
Remove "line" tests and ensure error under "line"
2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang
cc9c773c28
rm deprecated grandfather 'cel-gaulish'
2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang
b94ef8cbdc
rm deprecated grandfather 'cel-gaulish'
2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang
49c184eb0f
Rm deprecated grandfather 'cel-gaulish' from tests
2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang
dde5d8e546
Fix invalidLanguageTags array
2019-01-30 10:05:07 -05:00
Frank Yung-Fong Tang
9345023d5f
move more cases from valid to invalid ( #2047 )
...
This is based on UTS35 in the new spec.
2019-01-28 11:55:57 -05:00
Frank Yung-Fong Tang
9495886d18
Change expectation for x- private lang tag ( #2046 )
2019-01-28 11:55:20 -05:00
Frank Yung-Fong Tang
6da911b9f2
Fix the rounding issue ( #2027 )
2019-01-28 11:52:50 -05:00
Frank Yung-Fong Tang
e0a07bc650
Correct the expectation for format-fraction-digits-precision ( #2025 )
2019-01-28 11:42:22 -05:00
Frank Yung-Fong Tang
5eab51827b
Add "numberingSystem" to resolvedOptions() ( #2011 )
2019-01-28 10:59:54 -05:00
Frank Yung-Fong Tang
b337eaf7c7
change irregular grandfather tag to it's canonical ( #2048 )
2019-01-28 10:59:07 -05:00
Frank Yung-Fong Tang
116c95d97c
Change test for -kn ( #1995 )
...
Add test for case of -kn-true
Verify no -kn-true nor -kn-false in the returned locale.
Change expectation per https://github.com/tc39/ecma402/pull/302
2019-01-24 12:45:49 -05:00
Frank Yung-Fong Tang
b7c9c6c78b
Remove unsupported irregular grandfathered tags. ( #2029 )
2019-01-24 12:34:03 -05:00
Frank Yung-Fong Tang
f39faeef87
Add test for 2.1 CanonicalizeLocaleList ( locales ) ( #2040 )
...
See https://tc39.github.io/proposal-intl-locale/#sec-canonicalizelocalelist
2019-01-24 12:28:25 -05:00
Frank Yung-Fong Tang
00d280d231
Remove test of extlang and 4 letter language ( #2030 )
...
This is due to the fact we now only accept Unicode Locale Identifier in
UTS 35.
2019-01-24 12:23:30 -05:00
Frank Yung-Fong Tang
4f1155c566
Change tests according to ecma402/pull/278 ( #2031 )
2019-01-18 14:15:37 -02:00
Frank Yung-Fong Tang
23cb23b852
Move localeMatcher before type and style ( #2010 )
...
Sync with https://github.com/tc39/proposal-intl-list-format/pull/36
2019-01-17 17:02:16 -02:00
Leo Balter
e403eea331
Fix false positives
2018-12-21 10:50:23 -05:00
Frank Yung-Fong Tang
dab8c8983a
remove "TypeError: Cannot convert a Symbol value to a string" ( #2009 )
2018-12-19 22:36:10 -02:00
Leo Balter
46c557247e
Fix more false positives throwing TypeError in functions
2018-12-17 16:45:56 -05:00
Frank Yung-Fong Tang
bf6b753dd7
Rename position to index ( #1994 )
...
https://github.com/tc39/proposal-intl-segmenter/pull/55
2018-12-15 05:52:31 -05:00
André Bargull
b62dae4fff
Fix various bugs in test cases ( #1988 )
2018-12-05 15:48:28 -05:00
Rick Waldron
3b09d0e2b5
Eliminate false positives: Intl.*
2018-11-30 11:47:57 -05:00
Ms2ger
d857bd6f72
Unified Intl.NumberFormat: Add some initial tests for SetNumberFormatUnitOptions.
2018-11-28 10:25:18 -05:00
Ms2ger
1185b5287d
Intl.Segmenter: Submit remaining V8 tests.
2018-11-26 15:04:19 -05:00
Ms2ger
ba6a483c43
Intl.Segmenter: Fix copy/paste errors in tests for valid options.
2018-11-15 10:04:28 -05:00
Rick Waldron
c4cca0b769
Merge pull request #1937 from ryzokuken/dtf-constructor-options-toobject
...
intl: increase coverage for DateTimeFormat
2018-11-08 09:25:28 -05:00
Ujjwal Sharma
0fc80cffc5
intl: increase coverage for DateTimeFormat
...
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that confirms that ToObject(...) is appropriately called inside the
implementation.
2018-11-08 11:55:52 +05:30
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
Rick Waldron
2e007144ba
Merge pull request #1627 from Ms2ger/RelativeTimeFormat-options-proto
...
Add tests for objects created in the RelativeTimeFormat constructor.
2018-07-06 14:47:40 -04:00
Rick Waldron
47f9008bd3
Merge pull request #1626 from Ms2ger/RelativeTimeFormat-options
...
Add some more tests for the options argument to the RelativeTimeForm…
2018-07-06 14:46:49 -04:00
Rick Waldron
7676b1b48e
Merge pull request #1625 from Ms2ger/Segmenter-@@toStringTag
...
Add a test for Intl.Segmenter.prototype[@@toStringTag].
2018-07-06 14:45:29 -04:00
Rick Waldron
221f212903
Merge pull request #1624 from Ms2ger/ListFormat-@@toStringTag
...
Add a test for Intl.ListFormat.prototype[@@toStringTag].
2018-07-06 14:44:51 -04:00
Ms2ger
65f2d5e8c2
Update the test for negative zero in NumberFormat.
...
The specification was updated in https://github.com/tc39/ecma402/pull/232 .
2018-07-06 17:29:17 +02:00
Ms2ger
df41a35c79
Add tests for objects created in the RelativeTimeFormat constructor.
...
The specification was changed in https://github.com/tc39/proposal-intl-relative-time/pull/79 .
2018-07-06 16:46:28 +02:00
Ms2ger
f8b6b929df
Add some more tests for the options argument to the RelativeTimeFormat constructor.
2018-07-06 15:00:15 +02:00
Ms2ger
b46778dc0f
Add a test for Object.prototype.toString with Intl.ListFormat objects.
2018-07-06 12:31:16 +02:00
Ms2ger
02f20f4e11
Add a test for Object.prototype.toString with Intl.Segmenter objects.
2018-07-06 12:29:43 +02:00
Ms2ger
aa7b3a5d02
Add a test for Object.prototype.toString with Intl.RelativeTimeFormat objects.
2018-07-06 12:27:48 +02:00
Ms2ger
d258fcd3ba
Add a test for Intl.Segmenter.prototype[@@toStringTag].
...
This was added to the specification in https://github.com/tc39/proposal-intl-segmenter/pull/29 .
2018-07-06 12:23:39 +02:00
Ms2ger
46a0ff6e41
Add a test for Intl.ListFormat.prototype[@@toStringTag].
...
The specification changed in https://github.com/tc39/proposal-intl-list-format/pull/13 .
2018-07-06 12:06:38 +02:00
Ms2ger
6092c08ade
Update expectation for Intl.RelativeTimeFormat.prototype[@@toStringTag].
...
The specification changed in https://github.com/tc39/proposal-intl-relative-time/pull/77 .
2018-07-06 11:45:20 +02:00
André Bargull
06c2f01901
Fix multiple test bugs and remove incomplete or no longer valid tests ( #1616 )
2018-06-29 18:52:53 -04:00
Ms2ger
a6c1d05ac4
Add some additional tests for @@toStringTag on Intl.Locale. ( #1604 )
2018-06-26 14:43:05 -04:00
Ms2ger
b4efa8c938
Add tests for the shape of the Intl.RelativeTimeFormat API. ( #1596 )
...
* Add Intl.RelativeTimeFormat feature.
* Add tests for the shape of the Intl.RelativeTimeFormat API.
* fixup! Add tests for the shape of the Intl.RelativeTimeFormat API.
2018-06-26 14:02:29 -04:00
Ms2ger
650adc13bf
Intl.Locale: Update expectation for empty values for collation and numberingSystem.
...
The spec changed in https://github.com/tc39/proposal-intl-locale/pull/47 .
The tests for calendar were already correct.
2018-06-13 09:43:08 +02:00
Rick Waldron
acf6de15ec
intl402/NumberFormat/length.js: remove calls to verifyNotEnumerable, verifyNotWritable, verifyConfigurable. Fixes gh-1591
2018-06-07 22:14:33 -04:00
Rick Waldron
11f476cdbb
Merge pull request #1586 from Ms2ger/getCanonicalLocales-Locale
...
Add a test for passing Intl.Locale objects to Intl.getCanonicalLocales().
2018-06-04 17:01:51 -04:00
Rick Waldron
f71ce6d29a
Merge pull request #1585 from Ms2ger/Locale-branding
...
Add tests for branding checks in Intl.Locale.prototype members.
2018-06-04 17:01:15 -04:00
Rick Waldron
b0aff0d2e3
Merge pull request #1574 from Ms2ger/Locale-getter-name
...
Add tests for the names of getters on Intl.Locale.prototype.
2018-06-04 16:13:47 -04:00
Ms2ger
11e3c5fc00
Add a test for passing Intl.Locale objects to Intl.getCanonicalLocales().
2018-06-04 18:03:19 +02:00
Ms2ger
326fe2b8ac
Add tests for branding checks in Intl.Locale.prototype members.
2018-06-04 17:38:52 +02:00
Rick Waldron
1fbe20290d
Merge pull request #1583 from Ms2ger/Locale-various
...
Various additions to the Intl.Locale test coverage.
2018-06-04 11:33:03 -04:00
Ms2ger
501a9a674f
Various additions to the Intl.Locale test coverage.
2018-06-04 14:08:28 +02:00
Ms2ger
8ce24bb837
Add a test for Locale#{minimize,maximize}.
2018-06-04 11:27:42 +02:00
Rick Waldron
92003a3e52
Merge pull request #1576 from Ms2ger/pluralCategories
...
Add a test for pluralrules.resolvedOptions().pluralCategories.
2018-05-29 14:08:41 -04:00
Rick Waldron
c1c60447f3
Intl.Locale: fix typo in assertion message ( #1575 )
2018-05-29 14:02:28 -04:00
Ms2ger
cd6198b69c
Add a test for pluralrules.resolvedOptions().pluralCategories.
2018-05-29 17:34:34 +02:00
Ms2ger
4dbd18197e
Add tests for the names of getters on Intl.Locale.prototype.
2018-05-29 15:34:58 +02:00
Rick Waldron
fbccd8eeff
Intl: PluralRules, NumberFormat, Number & getCanonicalLocales to use verifyProperty
...
There's a lot of work like this to do, but not enough time in the day to reach it all.
2018-05-18 12:35:06 -04:00
Rick Waldron
50de5f98ab
Intl.Locale: ensure that the expect value is correctly printed in the assertion message
2018-05-17 17:30:48 -04:00
Rick Waldron
a33ccf6bf1
Merge pull request #1558 from Ms2ger/Locale-constructor-options
...
Improve and extend the tests for ApplyOptionsToTag.
2018-05-17 17:16:57 -04:00
Rick Waldron
bd7b77c17d
Intl.Locale: relocate test files
2018-05-17 17:14:01 -04:00
Ms2ger
ce8d0520b8
Add some more Locale tests.
2018-05-15 17:27:57 +02:00
Ms2ger
9300187c75
Improve and extend the tests for ApplyOptionsToTag.
2018-05-15 14:37:31 +02:00
Rick Waldron
e845e21bf5
Intl.Locale: minor fixups ( #1554 )
...
- fix mixed up test & info
- add Symbol feature
- maximize length is 0
- maximize configurability is true
2018-05-11 16:37:52 -03:00
Rick Waldron
83d815328f
Intl.Locale: follow up tasks, set 1. Ref gh-1538 ( #1540 )
2018-05-04 14:49:37 -03:00
Ms2ger
eecf4d46ad
Submit some Intl.Locale() tests.
...
Some of these are based on work by André Bargull in
<https://bugzilla.mozilla.org/show_bug.cgi?id=1433303 >.
2018-05-03 14:21:10 -04:00
Ms2ger
190cf5c730
Extract list of structurally invalid tags from invalid-tags.js.
2018-05-03 14:20:39 -04:00
André Bargull
b552dad5cb
Various test cases for cross-browser compliance bugs
2018-05-03 09:27:27 -07:00
André Bargull
40a7bd2401
Add test cases for tc39/ecma402#194
2018-01-25 14:04:44 -05:00
André Bargull
0ec5b02ac6
Add test case for tc39/ecma402#204
2018-01-25 13:59:15 -05:00
Rick Waldron
d7b5715e6c
Fix: various lint fixes
2018-01-11 10:21:08 -05:00
Rick Waldron
92a2621901
Frontmatter: fixup "info: >" to "info: |"
2018-01-05 12:27:59 -05:00
Rick Waldron
5155397373
Add missing features
2017-12-21 16:46:57 -05:00
André Bargull
91460f90de
Update property-descriptor tests to use verifyProperty
2017-12-21 16:46:56 -05:00
André Bargull
c9ef958d01
Update currency digits data
2017-12-21 16:46:56 -05:00
André Bargull
b6e9f9425f
Remove unused includes in Intl test files
2017-12-21 16:46:56 -05:00
André Bargull
a380c6b000
Use more descriptive names for Intl test files
2017-12-21 16:46:56 -05:00
André Bargull
60692bb6e0
Move remaining testBuiltInObject callers to use normal assert calls
2017-12-21 16:46:56 -05:00
André Bargull
c81370348d
No longer use testBuiltInObject for built-in objects
2017-12-21 16:46:56 -05:00
André Bargull
ecf814bb4c
No longer use testBuiltInObject for built-in constructors
2017-12-21 16:46:56 -05:00
André Bargull
4337b396bd
Add separate test files for property attributes of Intl properties
2017-12-21 16:46:56 -05:00
André Bargull
513a3056fb
Add separate test files to test the length property of Intl functions
2017-12-21 16:46:56 -05:00
André Bargull
c2c274fe8a
Update collations and calendar data in test files to CLDR 32
2017-12-21 16:46:56 -05:00
André Bargull
f65bd7af7a
Require correct hour-cycle setting instead of either h11 or h12 resp. h23 or h24
2017-12-21 16:46:56 -05:00