Commit Graph

45 Commits

Author SHA1 Message Date
Yusuke Suzuki e75ed15b91 Perl YAML parser cannot parse documents in options-granularity-abrupt-throws.js and options-granularity-toString-abrupt-throws.js
Remove line terminator.
2020-09-21 16:04:44 -04:00
Rick Waldron 6397602037 Update test/intl402/Segmenter/ctor-custom-get-prototype-poison-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Rick Waldron cce13c4c24 Update test/intl402/Segmenter/constructor/constructor/options-localeMatcher-toString-abrupt-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Rick Waldron 74bed11865 Update test/intl402/Segmenter/constructor/constructor/options-granularity-toString-abrupt-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Frank Tang 7a4a637574 Address review comments 2020-09-10 16:08:39 -04:00
Frank Tang 4f8ee98d26 Remove Unused include: "propertyHelper.js" 2020-09-10 16:08:39 -04:00
Frank Tang 2886465593 Add true for the test case 2020-09-10 16:08:39 -04:00
Frank Tang 6d97fa208a Fix errors 2020-09-10 16:08:39 -04:00
Frank Tang 085cb50b25 Add more tests for Intl.Segmenter 2020-09-10 16:08:39 -04:00
Frank Yung-Fong Tang 0f5a274aad
Fix Segmenter tests: Check "input" in segment-*-iterable.js (#2714)
* Check "input" in segment-*-iterable.js

Remove dup test in segment-*.js

* Fix segment-tostring.js
2020-07-29 12:00:35 -07:00
Yusuke Suzuki 80b54781b0
Intl.Segmenter iterator result should have isWordLike only if type is "word" (#2717)
Update according to https://github.com/tc39/proposal-intl-segmenter/pull/128.
2020-07-28 10:53:16 -07:00
Frank Tang ae0de0b6bb Remove redundant assert 2020-06-10 12:30:58 -04:00
Frank Tang c6fd7eb602 Update Intl.Segmenter to latest spec
Remove methods removed in the latest reversion.

Still need to add tests for:
1.5.2.1 %SegmentsPrototype%.containing ( index )
1.6.2.1 %SegmentIteratorPrototype%.next ()
1.6.2.2 %SegmentIteratorPrototype% [ @@toStringTag ]
2020-06-10 12:30:58 -04:00
Alexey Shvayka 34cbf0aed2 Add "proto-from-ctor-realm" tests for Intl proposals (#2346)
* Add Intl.Segmenter test

* Add Intl.RelativeTimeFormat test

* Add Intl.Locale test

* Add Intl.ListFormat test
2019-10-08 14:39:52 -04:00
Mike Pennisi f26c2a11bd Remove unnecessary "includes" directives
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
André Bargull f7e8dba39b Update tests to parse language tags as Unicode BCP 47 Locale Identifiers
harness/testIntl.js
- Add now invalid tags to getInvalidLanguageTags, these tags were previously used in test files changed in this commit.
- Update isCanonicalizedStructurallyValidLanguageTag regular expressions.

test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
- Moved five now invalid tags to getInvalidLanguageTags function in testIntl.js

test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
- All irregular grandfathered tags are invalid now
- Regular grandfathered with extlang subtags are now also invalid
- Regular grandfathered with variant-like subtags are still valid

test/intl402/Intl/getCanonicalLocales/weird-cases.js
- Revert changes from last commit
- "x-u-foo" is now invalid and was moved to getInvalidLanguageTags function

test/intl402/ListFormat/constructor/constructor/locales-valid.js
test/intl402/RelativeTimeFormat/constructor/constructor/locales-valid.js
test/intl402/Segmenter/constructor/constructor/locales-valid.js
- Irregular grandfathered and privateuse only are no longer valid language tags

test/intl402/language-tags-canonicalized.js
- Same changes as in test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js

test/intl402/language-tags-invalid.js
- Invalid tags list in this file was a subset of getInvalidLanguageTags, so replaced with getInvalidLanguageTags to get more coverage

test/intl402/language-tags-valid.js
- Same changes as in test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
2019-07-21 05:44:21 -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 4f1155c566 Change tests according to ecma402/pull/278 (#2031) 2019-01-18 14:15:37 -02:00
Leo Balter e403eea331 Fix false positives 2018-12-21 10:50:23 -05: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 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
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
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 0d07ed06c0 Intl.Segmenter: Submit batch of V8 tests for segment(). 2018-10-25 10:15:11 -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
Ms2ger e527498bff Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
Ms2ger 02f20f4e11 Add a test for Object.prototype.toString with Intl.Segmenter objects. 2018-07-06 12:29:43 +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