Commit Graph

4170 Commits

Author SHA1 Message Date
Caio Lima aced1f265f Tests to cover simple declaration of static fields. 2019-08-12 15:01:17 -03:00
Ms2ger 278fa62706 Lint: Run lint unit tests on Python 3 as well. 2019-08-12 17:14:39 +02:00
Ms2ger f7896ada9e Lint: Use the print function rather than the statement. 2019-08-12 17:14:07 +02:00
Ms2ger f899f9524c Lint: Use items() rather than iteritems(). 2019-08-12 17:14:07 +02:00
Ms2ger 0b5ff0e151 Lint: Expect bytes rather than unicode from subprocess. 2019-08-12 17:14:07 +02:00
Ms2ger b78cb852e6 Lint: Rename _THROW_STMT_LEGACY to _THROW_STMT_RAW.
'Legacy' implies (to me) that it should no longer be allowed, but the lint
explicitly checks for its presence (in the 'raw' case).
2019-08-12 17:14:07 +02:00
Ms2ger 8946956f19 Lint: Make CheckHarnessFeatures output stable.
The iteration order for a set is not guaranteed to be stable, but this test expected it to be.
2019-08-12 17:14:07 +02:00
Ms2ger c4e5d69044 Tools: Update PyYAML version. (#2279)
Fixes #2278.
2019-08-12 09:49:14 -04:00
Leo Balter 4d31d84531
Fix typo in file names (#2281)
Ref #2241
2019-08-12 09:44:49 -04:00
Ms2ger 48cee19d5b Remove obsolete lint exceptions. (#2276)
These became unnecessary at some point.
2019-08-09 10:58:44 -04:00
Ms2ger 8f5f6a1aa1 tools: update lint.py to work with pip 10+ some more (#2273)
main() and InstallRequirement were also removed from the public API.
2019-08-08 14:11:34 -04:00
Leo Balter 00ef6331a6 More cases 2019-08-05 23:07:53 -04:00
Leo Balter 56a2dba975 First set of tests for Top Level Await 2019-08-05 23:07:53 -04:00
Leo Balter 84cff5090e
Merge pull request #2267 from mkubilayk/static-private-method-inner
Add tests for static private method access inside nested functions
2019-08-05 16:47:44 -04:00
Kubilay Kahveci 9b29709797 Add tests for .toString() of private methods (#2268) 2019-08-05 16:47:19 -04:00
Benjamin E. Coe aae991da8a feat: adding tests for optional chaining proposal (#2212) 2019-08-05 11:10:25 -04:00
Leo Balter c4dd26bcee Generate tests 2019-08-05 10:56:24 -04:00
Leo Balter ca9a3fde50 Generate tests 2019-08-05 10:56:24 -04:00
Leo Balter 8e5820fce7 Add cases for dstr assignment w/ inner edgy LHSExpressions 2019-08-05 10:56:24 -04:00
Leo Balter 8893f7a684 Generate tests 2019-08-05 10:55:32 -04:00
Leo Balter 29627e892b Add cases for Optional Expressions as DestructuringAssignmentTarget 2019-08-05 10:55:32 -04:00
Leo Balter ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Leo Balter ddfe24afe3 Regenerate tests 2019-08-05 10:54:37 -04:00
Leo Balter 6d9bef23d3 Remove es6id from generation files 2019-08-05 10:54:37 -04:00
Kubilay Kahveci 805e78d239 Generate tests 2019-08-02 11:25:10 +01:00
Kubilay Kahveci 458a35e78a Add tests for static private method access inside nested functions 2019-08-02 11:25:00 +01:00
Caio Lima aeff2b0048 Adding case where PrivateName is used inside computed property. (#2241)
* Adding case where PrivateName is used inside computed property.

* Adding proper description to early errors on usage of undeclared private names inside computed property.
2019-07-30 14:53:56 -04:00
Caio Lima 98d4844997 Fixing private-getter-brand-check-multiple-evaluations-of-class-function-ctor to use private getter. (#2259) 2019-07-30 14:53:12 -04:00
Caio Lima 67ab89a4cb Fixing tests that access PrivateNames from another realm to assert the correct TypeError object, since each function will throw the TypeError from the realm where it was created. (#2258) 2019-07-30 14:43:01 -04:00
André Bargull 99f75984db Fix expected test values (#2261)
These two slipped through the cracks in #2097:

test/intl402/Intl/getCanonicalLocales/non-iana-canon.js
- Variant subtag canonicalisation is currrently not allowed.

test/intl402/Locale/getters.js
- Only the first "loc.caseFirst" test in this file was updated in #2097.
2019-07-30 10:53:44 -04:00
Leo Balter 2ee3864136
Add tests for Numeric Separators and BigInt (#2252) 2019-07-23 02:02:22 -04:00
Leo Balter 1affd0ccd5
Add tests for BigInt disallowed in LegacyOctalLike and NonOctal literals (#2253)
Ref https://github.com/tc39/proposal-bigint/issues/208
2019-07-23 01:41:26 -04:00
Leo Balter 7f1116982d
Merge pull request #2251 from leobalter/numeric-fix
Fix structure for numeric literal tests
2019-07-22 13:56:52 -04:00
Leo Balter 5116847aec Fix wording 2019-07-22 13:55:59 -04:00
Leo Balter c0d1182e18 Fix structure for numeric literal tests 2019-07-22 13:53:28 -04:00
Gus Caplan 2fb39cb4e9 add missing feature (#2250) 2019-07-22 12:46:59 -04:00
Leo Balter 1cb241cf36
Merge pull request #2097 from anba/canonical-jan2019
Fix various test issues (Was: Unicode BCP 47 Locale Identifier changes)
2019-07-22 08:57:24 -04:00
Frank Yung-Fong Tang 76eca53cb8 add fractionalSecondDigits.js for formatRange (#2242) 2019-07-22 08:54:24 -04:00
André Bargull 50331bd641 Correct expected value for Intl.Locale 'caseFirst'
An empty string is expected with the current proposal text.
2019-07-22 02:24:48 -07:00
André Bargull 8b725e3957 Updates test for Intl.NumberFormat Unified API Proposal changes. 2019-07-22 02:12:27 -07:00
André Bargull d8c20b423b Call $DONE function exactly once per test
Also make a note in CONTRIBUTING.md that `$DONE` shouldn't be called multiple times.
2019-07-22 02:12:24 -07:00
André Bargull 64b6b844eb Remove invalid template file
The template file violated the conventions from "src/class-elements/conventions.md".

Specifically there must be a global `C` variable, but default exports don't
create a global variable binding. There is no easy way to refer to the current
module and by that retrieve the default export, therefore the template was
removed.
2019-07-22 02:12:23 -07:00
André Bargull 589ef945fa Sort variants added to grandfathered tag
And add an explanation for a previously removed and now re-added assertion.
2019-07-22 02:12:21 -07:00
André Bargull c596d9674e Update `canonicalizeLanguageTag` helper to match UTS 35 canonicalisation 2019-07-22 02:12:20 -07:00
André Bargull 7b556c6ff2 Intl.getCanonicalLocales changes for UTS 35
intl402/Intl/getCanonicalLocales/canonicalized-tags.js
- Sign languages are no longer canonicalised.
- Variant subtags are sorted alphabetically.

intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
- Canonical form of "cel-gaulish" is "xtg-x-cel-gaulish".

intl402/Intl/getCanonicalLocales/preferred-variant.js
- Variant subtags are no longer canonicalised.
2019-07-22 02:12:18 -07:00
André Bargull e2ad1357c7 Update Intl.Locale tests for UTS 35
constructor-non-iana-canon.js
- Variant subtag canonicalisation is currently no longer present.

constructor-options-region-valid.js
- Digit region codes are now canonicalised.

constructor-tag.js
- Variant subtags are now sorted alphabetically.

likely-subtags-grandfathered.js
- "cmn" is now canonicalised to "zh".
2019-07-22 02:12:17 -07:00
André Bargull 1edeb484b8 Include locales supported through fallback when testing fallbacks
This test started failing when updating to ICU 64, because ICU supports "zh"
and "zh-Hans-CN", but not explicitly also "zh-Hans", which is required for this
test to pass. The same kind of error is reproducible with ICU <64 when "Guru"
is added to the list of script codes in 'testIntl.js', because ICU supports
"pa-Guru-IN", but "pa-IN" isn't explicitly supported, too.

So, change this test to also check 'byFallback' to see if a locale is supported.

Drive-by change:
- Modernise the test to make it more readable how subtags are combined.
- Also add "419" to the list of region codes to cover the digit region syntax.
2019-07-22 02:12:05 -07:00
Leo Balter 3e3abe0a49
Merge pull request #2063 from test262-automation/javascriptcore-test262-automation-export-7a0293f26c
Import test changes from JavaScriptCore
2019-07-21 21:17:36 -04:00
Leo Balter deb5d07a22
Merge pull request #2064 from test262-automation/v8-test262-automation-export-6bb8f41e0a
Import test changes from V8
2019-07-21 21:17:21 -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