Caio Lima
d65b9b35be
Abrupt completion cases ( #2321 )
...
* Added abrupt completition into PrivateFieldSet and PrivateFieldGet
* Adding abrupt completition for computed property evaluation
* Added case to cover abrupt completition on field initializer
* Fixing typo for 'complition' word
* Fixing typo into setter and getter description
* Fixing broken test abrupt-completition-on-field-initializer.js
* Fixing NITs
* Fixing typo of completion
2019-09-05 17:15:05 -03:00
Leo Balter
d6d37f2f43
Remove tests based on the $262.gc hook
...
Fixes #2239
Closes #2329
2019-09-05 19:38:03 +01:00
Leo Balter
d39e96b439
Add missing features for tests using cross-realm ( #2328 )
...
Fixes #2324
2019-09-04 16:27:20 -03:00
Caio Lima
a997838e4b
Adding missing variations to verify private method name setup ( #2323 )
...
* Added missing cases for name into variations of private method definition
* Generated tests
* Fixing broken case 'private-async-generator-method-name'
2019-09-04 11:43:25 -03:00
Leo Balter
0e30ee06c9
Merge pull request #2322 from caiolima/private-method-length
...
Added private method length cases
2019-09-04 11:42:19 -03:00
Leo Balter
5d84854f27
Avoid usage of Object.keys when asserting order of returned values ( #2320 )
...
Fixes #2226
2019-09-04 11:38:18 -03:00
Gus Caplan
841b32c6da
fix TypedArray.prototype.sort test ( #2326 )
...
* fix TypedArray.prototype.sort test
* Update sorted-values.js
* Update sorted-values.js
2019-09-04 11:36:51 -03:00
Caio Lima
32958aeb56
Generated tests
2019-08-30 13:35:28 -03:00
Leo Balter
b63cdfd4f4
Fix a test for TLA ( #2319 )
...
Fixes #2300
2019-08-29 17:20:50 -03:00
Caio Lima
7b1f479c8b
Added case file to intercalated static/non-static computed fields ( #2318 )
...
* Added case file to intercalated static/non-static computed fields.
* Fixing error into tests to properly call 'C' instead of 'c'.
2019-08-29 16:02:21 -03:00
Shu-yu Guo
a31961f7ea
Add tests for nested private fields ( #2317 )
...
This came up with a V8 bug where private fields weren't resolved
properly from nested classes where both the inner and the outer class
had private fields.
2019-08-29 11:19:47 -03:00
Qiming Ma
407103728c
Add tests for duplicate private methods (early-error) ( #2308 )
...
* Add tests for duplicate private methods
* Add generated js test files
* Fix indentation
* Add more features to tests
* Fix feature list format
2019-08-29 11:17:37 -03:00
Leo Balter
71e40aad50
Fix circular tests for JSON.stringify ( #2315 )
...
Ref #2168
2019-08-28 17:37:19 -03:00
Alexey Shvayka
d0b5137c15
Improve JSON.stringify coverage ( #2168 )
...
* Rename & improve "length" test
* Use verifyProperty in "name" test
* Rename & improve property descriptor test
* Remove duplicated test
https://github.com/tc39/test262/blob/master/test/built-ins/Object/prototype/toString/proxy-array.js
* Rename proxy value test
* Rename & improve String object unwrapping test
* Rename & improve Number object unwrapping test
* Rename & improve Boolean object unwrapping test
* Rename & merge replacer returns undefined tests
* Rename & merge replacer function tests
* Rename replacer array revoked proxy test
* Add cross-realm replacer array revoked proxy test
* Add array proxy replacer test
* Add replacer array keys order test
* Add empty replacer array test
* Add non-finite numbers serialization test
* Add replacer array abrupt completion test
* Add replacer array with duplicates test
* Add replacer array ignores undefined test
* Add replacer array unwraps strings test
* Add replacer array unwraps numbers test
* Rename & merge circular object tests
* Add circular array test
* Rename & merge top-level primitives tests
* Rename string escape tests
* Rename BigInt tests
* Rename & improve function value test
* Add replacer function abrupt test
* Rename & merge wrong space type tests
* Rename float number space test
* Rename & improve Number object space test
* Rename & improve String object space test
* Rename basic numeric space test
* Rename string space slice test
* Add replacer array numbers test
* Add toJSON abrupt completions test
* Add not callable toJSON test
* Add toJSON call arguments test
* Add replacer array wrong types test
* Rename & improve string space test
* Rename & improve replacer wrong type test
* Add built-in object requirements test
* Add basic toJSON result test
* Add abrupt array value test
* Add abrupt object value test
* Rename & merge space number clamp tests
* Add replacer function wrapper test
* Add symbol value test
* Add negative zero value test
* Add replacer function & toJSON test
* Add circular object from toJSON test
* Add circular array from toJSON test
* Add circular object from replacer test
* Add circular array from replacer test
* Add replacer function arguments test
* Split & improve proxy value test
* Split & improve revoked proxy value test
2019-08-28 17:34:59 -03:00
Leo Balter
1c2bd105fb
Remove shared-nonint-views.js files ( #2314 )
...
Ref #2103
2019-08-28 16:23:07 -03:00
André Bargull
e48bf299a6
Ensure Atomics functions validate the TypedArray type before coercing the other arguments ( #2103 )
2019-08-28 16:19:22 -03:00
Leo Balter
230ab42698
Merge pull request #2296 from caiolima/private-static-members-inner-class
...
Private static members inner class
2019-08-28 16:04:17 -03:00
Leo Balter
daa5994b38
Merge pull request #2294 from leobalter/2285/accessor-names
...
Add cases for `default` identifier names in accessor-names
2019-08-28 15:05:12 -03:00
Benjamin E. Coe
854df2196f
test: add test for ?. [expression] edge cases ( #2297 )
2019-08-28 15:02:17 -03:00
Caio Lima
33cc1cdb6c
Adding case where the usage of private field inside computed property should throw a TypeError. ( #2298 )
2019-08-28 15:00:13 -03:00
Caio Lima
fbbab61b4a
Adding cases to check if SyntaxError is thrown if AllPrivateIdentifiersValid returns false. ( #2301 )
2019-08-28 14:58:43 -03:00
Leo Balter
8d41122c2b
Merge pull request #2310 from mkubilayk/static-private-from-instance
...
Add tests covering static private methods used from instance methods
2019-08-28 14:19:00 -03:00
Leo Balter
2835648540
Merge pull request #2311 from shvaikalesh/harness-compare-array
...
Improve harness/compareArray
2019-08-28 14:12:12 -03:00
Leo Balter
3daa5e46fc
Merge pull request #2304 from caiolima/private-static-accessor
...
Private static accessor declaration and usage
2019-08-28 12:45:58 -03:00
Leo Balter
7ca7d01bfb
Merge pull request #2307 from caiolima/verify-different-brand
...
Verify different brand from static and instance private methods
2019-08-28 12:45:24 -03:00
Leo Balter
df3e9ad72f
Adding multiple class evaluation cases for private static accessors ( #2306 )
2019-08-28 12:45:00 -03:00
Caio Lima
8790a8e98a
Added private static accessor cases with direct eval access ( #2305 )
2019-08-28 12:44:14 -03:00
Alexey Shvayka
8042c57d9b
Add Promise#finally invoked on thenable test ( #2312 )
...
* Rename proxy context test
* Add thenable context test
2019-08-28 12:42:24 -03:00
Joyee Cheung
0a1e35d3db
Fix static method access in private-static-method-brand-check-multiple-evaluations-of-class-realm.js ( #2313 )
2019-08-28 12:41:25 -03:00
Alexey Shvayka
127c896cf2
Format symbols
2019-08-24 13:35:51 +03:00
Alexey Shvayka
c674362d1a
Use SameValue
2019-08-24 13:24:33 +03:00
Kubilay Kahveci
ca58913191
Generate tests
2019-08-23 13:50:23 +01:00
Caio Lima
04ccc8624e
Generated tests
2019-08-20 15:27:59 -03:00
Caio Lima
2b973de4e9
Adding multiple class evaluation cases for private static accessors
2019-08-19 21:25:12 -03:00
Caio Lima
01e89a8a0a
Generated tests
2019-08-19 18:10:23 -03:00
André Bargull
59a1a016b7
Assign "name" property to all anonymous functions ( #2299 )
...
Implements the changes from <https://github.com/tc39/ecma262/pull/1490 >.
2019-08-15 10:58:40 -04:00
Leo Balter
bcb6c33387
Regenerate tests
2019-08-14 19:14:44 -04:00
Leo Balter
209845c7b5
Generate tests
2019-08-14 18:54:04 -04:00
Caio Lima
2401cc678b
Fixing flags in some tests
2019-08-14 19:21:00 -03:00
Leo Balter
ae4df81f6f
Generate tests
2019-08-14 17:52:41 -04:00
Caio Lima
55a9ad0705
Added generated tests
2019-08-14 18:23:16 -03:00
Leo Balter
c09563280d
Generate tests
2019-08-14 17:02:04 -04:00
Leo Balter
4d06dbc7eb
Generate tests
2019-08-14 16:48:44 -04:00
Caio Lima
65fd8d30a3
Adding tests to verify if '.name' of static members are configured properly ( #2293 )
2019-08-14 13:33:41 -04:00
Caio Lima
f947f93887
Private static members with multiple evaluation of class ( #2291 )
2019-08-14 13:32:11 -04:00
Caio Lima
c9a5cc34c8
Adding cases of access private static fields/methods through direct eval ( #2289 )
2019-08-14 13:30:44 -04:00
Leo Balter
1da297e305
Fix typo from optional chaining test ( #2287 )
2019-08-14 12:47:31 -04:00
Ms2ger
70a07985a5
Unified Intl.NumberFormat: Various tests ( #2275 )
...
* Unified Intl.NumberFormat: Test compact notation with various locales.
* Unified Intl.NumberFormat: Test compactDisplay constructor option.
* Unified Intl.NumberFormat: Test signDisplay constructor option.
* Unified Intl.NumberFormat: Test signDisplay with various locales.
* Unified Intl.NumberFormat: Test signDisplay with accounting currencySign in various locales.
* Unified Intl.NumberFormat: Test engineering and scientific notations in various locales.
* Unified Intl.NumberFormat: Test unit handling.
* Unified Intl.NumberFormat: Test notation constructor option.
* Unified Intl.NumberFormat: Test engineering and scientific notations with negative exponents.
* Unified Intl.NumberFormat: Test near-zero arguments with signDisplay.
* Unified Intl.NumberFormat: Test units.
* Unified Intl.NumberFormat: Test unit arguments.
* Unified Intl.NumberFormat: Add a generic test for unit arguments.
* Unified Intl.NumberFormat: Test the unitDisplay argument.
2019-08-14 12:47:05 -04:00
Joyee Cheung
2312e123b8
accessing private fields in TDZ should throw a ReferenceError ( #2284 )
2019-08-14 12:45:29 -04:00
Snapstromegon
568601ddc8
[tc39/ecma262#1645] Remove double error tests ( #2290 )
...
Due to changing idempotenxy for dynamic import on failures these tests are no longer needed.
After tc39/ecma262#1645 idempotency is only required after completing normally.
2019-08-13 12:55:24 -04:00
Benjamin E. Coe
8f3aba3024
test: continuing to flesh out optional chaining tests ( #2272 )
2019-08-13 00:48:50 -04:00
Caio Lima
51b3953d61
Added cases to cover public static field initializer operations with 'this' biding. ( #2283 )
...
* Added cases to cover public static field initializer operations with 'this' biding.
* Added initializer that throws.
* Adding missing ';'
* Fixing broken test static-field-initializer-error.js. 'function' keyword
was missing.
2019-08-13 00:21:27 -04:00
Leo Balter
134652ea3c
Merge pull request #2282 from caiolima/static-fields-usage
...
Tests to cover simple declaration of static fields.
2019-08-13 00:16:40 -04:00
Caio Lima
aced1f265f
Tests to cover simple declaration of static fields.
2019-08-12 15:01:17 -03:00
Leo Balter
4d31d84531
Fix typo in file names ( #2281 )
...
Ref #2241
2019-08-12 09:44:49 -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
8893f7a684
Generate tests
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
Kubilay Kahveci
805e78d239
Generate tests
2019-08-02 11:25:10 +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
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
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
André Bargull
94053978bc
Update language tag canonicalisation per UTS35
...
Main changes:
- "cmn" is now canonicalised to "zh"
- "und-x-" is prepended before grandfathered tags without modern replacements
- "und-" is prepended before privateuse-only language tags
2019-07-21 05:44:21 -07:00
Leo Balter
51d1abadce
Fix typo ( #2246 )
2019-07-19 16:01:10 -04:00
Leo Balter
b3b0e8e190
Merge pull request #2235 from mkubilayk/static-subclass-receiver
...
Check static private methods on super class are called with correct receiver
2019-07-19 14:01:51 -04:00
Leo Balter
b6760c3cc0
Add tests for Numeric Separators not allowed in legacy octal and non octal literals
2019-07-19 13:59:00 -04:00
Leo Balter
edeada5376
Add cases for division after a Block
...
Plus some line terminator checks
2019-07-19 13:57:16 -04:00
Leo Balter
a1f7142b89
Generate tests
2019-07-19 13:55:44 -04:00
Caio Lima
1dc78879d4
Add edge tests to verify BigInt to Number conversion when BigInt can't directly be represented by a Number.
2019-07-19 13:53:01 -04:00
Leo Balter
5549fd0022
Merge pull request #2197 from jbhoosreddy/class-decl-module
...
Add more class declaration formations
2019-07-16 19:30:17 -04:00
Leo Balter
7c1775ae24
Merge pull request #2223 from gibson042/2019-07-rest-param-strict-body
...
Add tests for rest parameter with "use strict" (expecting syntax error)
2019-07-16 19:23:51 -04:00
Caio Lima
b3aea7e831
Adding tests to verify cases on PrivateFieldSet and PrivateFieldGet where we should throw TypeError ( #2229 )
2019-07-16 19:22:02 -04:00
Frank Yung-Fong Tang
dce0910981
change to camelCase to sync with #54 ( #2240 )
...
to sync with https://github.com/tc39/proposal-unified-intl-numberformat/pull/54
@sffc @leobalter
2019-07-16 19:00:29 -04:00
Leo Balter
d02fe7db38
Add coverage for non object values of the Properties arg of Object.create ( #2238 )
...
Fixes #2237
2019-07-15 16:17:03 -04:00
Leo Balter
cd79eada15
Update test files to follow lint rule
2019-07-15 14:03:25 -04:00
Frank Yung-Fong Tang
f7e6656c13
Remove tests for "quarter" option of Intl.DateTimeFormat ( #2232 )
2019-07-15 13:51:22 -04:00
Frank Yung-Fong Tang
53d14f56bb
Add tests for format/formatToParts of fractionalSecondDigits option ( #2234 )
...
* Add more tests for fractionalSecondDigits
* + test of fractionalSecondDigits formatToParts
2019-07-15 13:50:25 -04:00
Kubilay Kahveci
90d59c52f8
Generate tests
2019-07-12 13:33:18 +01:00
Leo Balter
6cb0a531af
Fix typos
2019-07-11 11:17:30 -04:00
Leo Balter
b45bf4b6fa
fixup! Some edgy cases for weakrefs/finalizationgroups
2019-07-11 11:17:30 -04:00
Leo Balter
3c293f0e6c
Some edgy cases for weakrefs/finalizationgroups
2019-07-11 11:17:30 -04:00
jbhoosreddy
ff05d31b6b
generated tests
2019-07-10 20:38:33 -04:00
Richard Gibson
c59db6e8bd
Generate tests
...
SRC_DIR=src/function-forms ./make.py
2019-07-10 20:20:16 -04:00
Caio Lima
ea359a1d81
Added tests to cover access of private members on inner regular functions and arrow functions. ( #2228 )
2019-07-10 16:58:19 -04:00
Alexey Shvayka
19b5a5a635
Improve Object#toString coverage ( #2202 )
...
* Move proxies with non-string toStringTag to separate file
* Add coverage for async proxy functions
* Add coverage for built-ins with non-string toStringTag
* Move async proxy function tests to new file
2019-07-10 14:00:04 -04:00
Frank Yung-Fong Tang
281c7ff5d0
Correct features to Intl.DateTimeFormat-dayPeriod ( #2222 )
2019-07-03 18:09:45 -04:00
Nicolò Ribaudo
77f6cfb2aa
Add missing features to class fields tests ( #2220 )
2019-07-03 17:22:14 -04:00
Leo Balter
b41b0577a0
Add tests for DateTimeFormat using dayPeriod
2019-07-02 10:04:43 -04:00
Leo Balter
1ef21eb50b
fixup! Cleanup some tests for FinalizationGroup
2019-07-02 10:04:04 -04:00
Leo Balter
6242304cd0
Cleanup some tests for FinalizationGroup
2019-07-02 10:04:04 -04:00
Timothy Gu
9dfb9e14e0
Fix WeakMap/WeakSet typo
...
The test tries to test against WeakSet, but used WeakMap instead.
2019-07-02 09:37:46 -04:00
Caio Lima
b1b4177796
Adding cases where private names are used on direct eval calls ( #2213 )
...
* Adding cases where private names are used on direct eval calls
* Removing return statement from setter case
2019-06-26 15:08:44 -04:00
Leo Balter
1fb2b78a8d
Merge pull request #2188 from caiolima/private-methods-own-property
...
Verify that private methods and accessors aren't visible to [[GetOwnProperty]] and [[HasProperty]].
2019-06-26 15:07:47 -04:00
Jaideep Bhoosreddy
51fc533565
Add test for multiple evaluations of classes with private ( #2176 )
2019-06-26 15:05:10 -04:00
Alexey Shvayka
d7c95efe66
Improve "name" tests of Promise built-in functions ( #2179 )
2019-06-26 15:03:14 -04:00
Leo Balter
7c7d3f756c
Fix tests for FinalizationGroup
2019-06-26 13:49:08 -04:00
Caio Lima
166d5ac589
Adding tests to validate HomeObject setup on private methods and accessors ( #2214 )
2019-06-26 12:03:36 -04:00
Alexey Shvayka
14b6bec36d
Add unary operators with NewTarget test ( #2199 )
2019-06-24 16:45:13 -04:00
Leo Balter
f7f07a9010
Add a test for FinalizationGroupCleanupIteratorPrototype
2019-06-21 20:00:35 -04:00
Gus Caplan
61ccff550e
Fix invoke-resolve-get-error-close tests ( #2210 )
2019-06-21 14:26:57 -04:00
Frank Yung-Fong Tang
9d0072df3d
Fixes {format,formatToParts}/en-us-numeric-auto.js ( #2207 )
...
The following lines expect each unit has property "-1" and "1"
```
const expected = unit in exceptions
? [exceptions[unit]["1"], exceptions[unit]["0"], exceptions[unit]["0"], exceptions[unit]["-1"]]
: [`in 1 ${unit}`, `in 0 ${unit}s`, `0 ${unit}s ago`, `1 ${unit} ago`];
```
2019-06-21 13:44:42 -04:00
Gus Caplan
7a1da555a5
add WeakRef feature to WeakRef/constructor test. ( #2209 )
2019-06-21 13:41:28 -04:00
Leo Balter
f7591eb01b
fixup
2019-06-21 11:50:22 -04:00
Leo Balter
73f80aea4d
Apply review feedback
2019-06-21 11:50:22 -04:00
Leo Balter
ca11ac4a43
Add tests for cleanupSome
2019-06-21 11:50:22 -04:00
Leo Balter
dcac20d8ed
Add tests for FG register/unregister
2019-06-21 11:50:22 -04:00
Leo Balter
ab38ce4e84
Add more tests, include deref
2019-06-21 11:50:22 -04:00
Leo Balter
c2c81409b2
fixup! Normative optional WeakRef#constructor
2019-06-21 11:50:22 -04:00
Leo Balter
5fabef83dc
Normative optional WeakRef#constructor
2019-06-21 11:50:22 -04:00
Leo Balter
16e9389b01
fix typo
2019-06-21 11:50:22 -04:00
Leo Balter
62477ea0c9
More tests
2019-06-21 11:50:22 -04:00
Leo Balter
e3d87d6690
No ctor for WeakRef.prototype
2019-06-21 11:50:22 -04:00
Leo Balter
969d4e68b4
Basic tests for weakref and finalizationgroup
2019-06-21 11:50:22 -04:00
Caio Lima
bf859771f0
Adding case with computed property and simplifying 'own-property.case'
2019-06-21 12:29:54 -03:00
Caio Lima
f1ac274f9d
Adding test cases to verify that private methods and accessors are not visible to [[GetOwnProperty]] and [[HasProperty]].
2019-06-21 09:50:12 -03:00
Alexey Shvayka
df1a1c75b7
Remove trailing spaces from YAML blocks ( #2201 )
2019-06-19 16:39:21 -04:00
Alexey Shvayka
084e45966f
Add poisoned __proto__ tests ( #2203 )
...
* Add SuperProperty test
* Add SuperCall test
* Add ClassDeclaration test
* Add ClassExpression test
2019-06-19 16:38:30 -04:00
Gus Caplan
ceaebf7058
fix built-ins/Object/subclass-object-arg ( #2200 )
2019-06-19 15:48:53 -04:00
Student Main
aa04a11698
Add test case for CJK Unified Ideograph range. ( #2193 )
2019-06-19 15:34:52 -04:00
Long Ho
6fd738d396
add exceptions for hour & minute in Intl.RelativeTimeFormat numeric auto ( #2191 )
2019-06-19 15:34:24 -04:00
Alexey Shvayka
395401cba0
Slightly improve JSON.parse coverage ( #2196 )
2019-06-12 15:29:04 -04:00
Alexey Shvayka
8984ea8080
Add "proxy-missing-checks" feature tag ( #2195 )
2019-06-12 15:00:18 -04:00
Alexey Shvayka
74e0cae407
Add Date.prototype.toJSON coverage ( #2190 )
2019-06-12 14:59:54 -04:00
Alexey Shvayka
57f0884396
Use SameValue in verifyProperty helper ( #2185 )
2019-06-12 14:14:14 -04:00
Alexey Shvayka
430ee14d90
Add Object subclass test ( #2177 )
2019-06-12 14:11:16 -04:00
Ross Kirsling
079b004ac4
Update module resolution tests too.
2019-06-12 14:09:03 -04:00
Ross Kirsling
1859ec66f4
Test update for letting all early errors be SyntaxErrors
2019-06-12 14:09:03 -04:00
Leo Balter
ab046dc1ea
Cleanups for tests
...
Ref https://github.com/tc39/test262/pull/2194
2019-06-12 14:06:22 -04:00
Frank Yung-Fong Tang
49eee8bf9d
Initial tests for Intl.DateTimeFormat quarter/dayPeriod/fractionalSecondDigits ( #2194 )
2019-06-12 11:55:53 -04:00
Frank Yung-Fong Tang
f7a3f63270
remove (min|max)imumFractionDigits w/ significant ( #2189 )
...
Per change in https://tc39.github.io/proposal-unified-intl-numberformat/section11/numberformat_diff_out.html
we should not output minimumFractionDigits and maximumFractionDigits if minimumSignificantDigits or maximumSignificantDigits are set.
2019-06-05 04:08:54 -04:00
Caio Lima
c0c0417f04
Adding new test cases to validate public class fields initialization. ( #2186 )
2019-05-30 11:21:26 -04:00
Leo Balter
77b0e84452
Regenerate tests
2019-05-29 15:59:27 -04:00
Aleksey Shvayka
1265a60017
Improve Proxy/construct coverage ( #2159 )
2019-05-29 15:49:41 -04:00
Aleksey Shvayka
465d0b587e
Add for-of tests with bogus initializers ( #2182 )
2019-05-29 15:37:52 -04:00
Leo Balter
dce80ecde1
Merge pull request #2178 from mkubilayk/private-before-super-return
...
Check private methods are not installed before super returns
2019-05-29 13:22:11 -04:00
Leo Balter
35dc11f569
Merge pull request #2171 from leobalter/call-innerb
...
Add assertion for private method shadowed by getter case
2019-05-29 10:54:30 -04:00
Kubilay Kahveci
240cc6992e
Generate tests
2019-05-29 11:00:19 +01:00
Aleksey Shvayka
2ce56a5f64
Verify that symbols are not callable ( #2180 )
2019-05-27 10:34:05 -04:00
Aleksey Shvayka
6f4c0d96f7
Improve GetFunctionRealm coverage ( #2155 )
...
* Fix Function.prototype.bind test
* Simplify Proxy test
* Info tweaks
* Add Function.prototype.bind recursive test
* Add Proxy recursive test
2019-05-22 18:11:49 -04:00
Leo Balter
1951d335d6
Merge pull request #2173 from leobalter/2170/feature
...
Fix feature flag
2019-05-22 18:10:52 -04:00
Aleksey Shvayka
e4fed70c9b
Fix description of Promise constructor test ( #2174 )
2019-05-22 17:57:45 -04:00
Aleksey Shvayka
4838fc3167
Improve String#toString and String#valueOf coverage ( #2160 )
...
* toString: rename "length" test
* toString: use verifyProperty in "name" test
* toString: rename & merge non-generic tests
* toString: add cross-realm non-generic test
* toString: rename happy path tests
* valueOf: use verifyProperty in "length" test
* valueOf: use verifyProperty in "name" test
* valueOf: rename & merge non-generic tests
* valueOf: add cross-realm non-generic test
* valueOf: rename happy path tests
* toString: add indirect invocation tests
* valueOf: add indirect invocation tests
2019-05-22 17:47:15 -04:00
Aleksey Shvayka
ee960aefb5
Improve Promise constructor coverage ( #2158 )
...
* Add constructor descriptor test
* Rename & improve non-callable executor test
* Rename & simplify executor call context tests
* Remove duplicate reject via abrupt test
* Deduplicate undefined NewTarget tests
* Add basic constructor test
* Add abrupt prototype getting tests
2019-05-22 17:33:09 -04:00
Mathias Bynens
a9abd418cc
Update RegExp property escape tests per Unicode v12.1.0 ( #2161 )
...
Ref. https://github.com/tc39/ecma262/issues/1530 .
2019-05-22 17:08:14 -04:00
Leo Balter
c2ceb7345a
Regenerate tests
2019-05-22 17:05:42 -04:00
Leo Balter
a038f7b219
Fix yaml trailing line
2019-05-22 14:00:32 -04:00
Caio Lima
696d87274b
Added case to with Function.prototype.call
2019-05-22 13:53:58 -04:00
Caio Lima
4114b3749f
Adding tests to cover private methods comparison
2019-05-22 13:53:58 -04:00
Leo Balter
3c64d3eac4
Generate tests
2019-05-22 13:49:46 -04:00
Caio Lima
72945e0412
Adding test cases to cover usage of private methods and accessors on inner classes. ( #2150 )
2019-05-22 12:58:09 -04:00
Mathias Bynens
1c30aef38d
Move TypedArray#sort stability test to correct directory ( #2169 )
...
Follow-up to #2062 .
2019-05-20 11:35:59 -04:00
Ross Kirsling
a919d53019
Fix invalid YAML in formatRange* tests. ( #2157 )
2019-05-16 13:46:55 -04:00
Daniel Ehrenberg
80af423aca
intl tests for proposed additional options in options bag ( #1225 )
...
This patch implements tests for the ECMA 402 PR at
https://github.com/tc39/ecma402/pull/175
It is based on the test test/intl402/Collator/10.1.1_19_c.js
2019-05-16 13:46:08 -04:00
Frank Yung-Fong Tang
9b0d09eb11
change the removed unit 'generic' to 'gigabit'
2019-05-15 22:14:13 -07:00
Leo Balter
0c67d0f1b7
Merge pull request #2163 from shvaikalesh/function-apply
...
Improve Function#apply coverage
2019-05-15 14:43:16 -04:00
Aleksey Shvayka
5a725fe122
Expect TypeError from correct realm
2019-05-15 21:29:11 +03:00
Aleksey Shvayka
993601089b
Add Array property descriptor test ( #2164 )
2019-05-15 12:33:52 -04:00
Aleksey Shvayka
b6cc89c61d
Add abrupt completion tests
2019-05-15 03:28:33 +03:00
Aleksey Shvayka
8551382805
Add cross-realm "this not callable" test
2019-05-15 01:37:52 +03:00
Aleksey Shvayka
385848d449
Rename & merge "this not callable" tests
2019-05-15 01:36:22 +03:00
Aleksey Shvayka
9c93e05d90
Unify "length" tests
2019-05-15 00:01:29 +03:00
Aleksey Shvayka
6943b289fc
Add cross-realm "argArray not object" test
2019-05-14 23:07:27 +03:00
Aleksey Shvayka
171b3ef083
Rename & merge "argArray not object" tests
2019-05-14 23:07:23 +03:00
Aleksey Shvayka
8c1819484e
Improve Proxy/apply coverage ( #2156 )
2019-05-10 15:57:40 -04:00
Caio Lima
2682ab57cf
Adding private brand check cases for private methods, getters and setters. ( #2152 )
2019-05-08 16:26:13 -04:00
Caio Lima
7ab73f5fb7
Fixing typo on
2019-05-08 15:21:26 -03:00
Caio Lima
4cd26da388
Adding more cases that can be present on ClassHeritage grammar rule
2019-05-08 15:12:24 -03:00
Caio Lima
4c62f6dd73
Adding case to verify if PrivateEnvironment is properly set when evaluating 'ClassHeritage'
2019-05-08 15:12:24 -03:00
Ms2ger
0e8d1a29be
Add tests for Intl.DateTimeFormat formatRange and formatRangeToParts ( #2139 )
2019-05-08 11:40:33 -04:00
Aleksey Shvayka
4d33170d0e
Add tests for Proxy semantics change ( #2143 )
...
* Add not extensible target test for `deleteProperty`
* Add non-writable descriptor test for `defineProperty`
* Add non-writable descriptor test for `getOwnPropertyDescriptor`
2019-05-03 10:21:48 -04:00
Frank Yung-Fong Tang
d47749e84d
Use verifyProperty and remove dup check ( #2146 )
2019-05-02 19:49:40 -04:00
Frank Yung-Fong Tang
4b25f6fae8
Add initial tests for Intl.DateTimeFormat formatRange and formatRangeToParts ( #2134 )
2019-05-01 15:20:29 -04:00
Ms2ger
94c498a792
Test the interaction of timeStyle and u-hc locale tags. ( #2144 )
2019-05-01 13:13:50 -04:00
Ms2ger
532206a9bd
Add some more BigInt.prototype.toLocaleString tests. ( #2136 )
2019-05-01 13:05:25 -04:00
Leo Balter
3b2ad0b5d0
Fix tests for new resolve lookup in Promise.allSettled
2019-04-24 17:28:01 -04:00
Leo Balter
24d1b6d59c
Fix tests for new resolve lookup
2019-04-24 17:28:01 -04:00
Leo Balter
b646cf6365
Add tests for Promise.all|race resolve lookup
...
Ref tc39/ecma262#1506
2019-04-24 17:28:01 -04:00
Leo Balter
f4e60b8f20
Add a case for non extensible targets of proxies GetPrototypeOf ( #2122 )
2019-04-24 11:49:43 -04:00
Rick Waldron
631b36a734
Refactor module _FIXTURE.js to have no harness dependencies ( #2129 )
...
rwaldron in ~/clonez/test262 on master
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)
test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
ChakraCore (jsvu)
test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)
test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)
test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
Moddable (jsvu)
test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
rwaldron in ~/clonez/test262 on refactor-fixtures-to-eliminate-harness-file-dependencies
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)
test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
ChakraCore (jsvu)
test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)
test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)
test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
-----------------------------------------------------------------------------------------
Moddable (jsvu)
test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js
Ran 12 tests
12 passed
0 failed
2019-04-17 15:44:02 -04:00
Leo Balter
7e7b9e103d
Port tests from Promise.all to Promise.allSettled ( #2124 )
2019-04-17 14:17:54 -04:00
Jason Orendorff
1988988a10
Add a couple more tests for ASI with fields. ( #2128 )
2019-04-17 10:55:01 -04:00
Ms2ger
8e5ab69e8c
Initial tests for BigInt.prototype.toLocaleString(). ( #2126 )
...
Many of these tests are heavily based on the tests for
Number.prototype.toLocaleString().
2019-04-10 11:11:21 -04:00
Ms2ger
c03e14263e
Add tests for the datetime-style proposal. ( #2125 )
2019-04-10 11:09:40 -04:00
Frank Yung-Fong Tang
611919174f
correct a test case for updated list patterns ( #2123 )
...
I somehow missed the last line last time I proposed https://github.com/tc39/test262/pull/2111
2019-04-03 16:02:22 -04:00
ta7sudan
4bacf25f0d
Add test that a Proxy instance with getPrototypeOf trap use instanceof operator on a function ( #2107 )
2019-04-03 14:14:51 -04:00
Leo Balter
324f2916d3
Merge pull request #2119 from FrankYFTang/patch-2
...
Update test to allow 'narrow' style for all types
2019-04-02 14:10:24 -04:00
Frank Yung-Fong Tang
183f6d9f95
Update list pattern to sync with CLDR 35 ( #2111 )
...
CLDR 35 change "and" to "&" for the list form pattern "short"
see https://unicode.org/cldr/trac/ticket/11520
Also compare
https://www.unicode.org/repos/cldr/tags/release-34/common/main/en.xml
against
https://www.unicode.org/repos/cldr/tags/release-35-beta/common/main/en.xml
Notice the addition of
<listPattern type="standard-short">
<listPatternPart type="start">{0}, {1}</listPatternPart>
<listPatternPart type="middle">{0}, {1}</listPatternPart>
<listPatternPart type="end">{0}, & {1}</listPatternPart>
<listPatternPart type="2">{0} & {1}</listPatternPart>
</listPattern>
2019-04-02 14:09:36 -04:00
Leo Balter
93f2bae981
Merge pull request #2118 from jugglinmike/refactor-for-parsers-with
...
Refactor `with` statement tests for parsers
2019-04-02 14:08:18 -04:00
Leo Balter
cd1df5fae2
Merge pull request #2117 from jugglinmike/refactor-for-parsers-misc-stmts
...
Refactor misc. statement tests for parsers
2019-04-02 14:07:35 -04:00
Leo Balter
7ae3fe3b21
Merge pull request #2116 from jugglinmike/refactor-for-parsers-literals
...
Refactor literal tests for parsers
2019-04-02 14:03:25 -04:00
Richard Gibson
d62318319f
Add tests for string representations of Date objects with negative years ( #2114 )
...
* Add tests for string representations of Date objects with negative years
Ref https://github.com/tc39/ecma262/issues/1035
Ref https://github.com/tc39/ecma262/issues/1407
2019-04-02 14:02:35 -04:00
Frank Yung-Fong Tang
03c605fe3c
obsoleted test
2019-04-02 10:00:52 -07:00
Frank Yung-Fong Tang
b5d5241dbe
Update test to allow 'narrow' style for all types
...
Based on the changes in https://github.com/tc39/proposal-intl-list-format/pull/43
We now allow 'narrow' style for all types
2019-04-02 09:57:45 -07:00
Mike Pennisi
9b396d0b0b
Refactor `with` statement tests for parsers
...
The tests for the parsing of the `with` statement were expressed using
eval. This made the tests more complex than necessary and also prevented
the tests from providing value to ECMAScript parsers.
Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 22:22:04 -04:00
Mike Pennisi
255338141b
Remove redundant tests
...
These tests are syntactically equivalent to
`test/language/statements/with/12.10.1-7-s.js` and may therefore be
removed without degrading coverage.
While `test/language/statements/with/12.10.1-9-s.js` differs slightly in
the pattern used to enable strict mode, the relevant behavior of the
"use strict" directive prologue is expressly tested via
`test/language/directive-prologue/func-expr-inside-func-decl-parse.js`.
2019-03-31 22:21:41 -04:00
Mike Pennisi
159bcc7bad
Improve test precision
...
Previously, some tests verified two independent concerns simultaneously:
syntactic validity and runtime completion value. The former is relevant
for ECMAScript runtimes and parsers alike, but the latter is only
observable by runtimes.
Express expectations regarding syntactic validity using literal program
code so they can be used by parsers. Maintain the original tests which
rely on eval in order to preserve coverage for statement completion
values.
2019-03-31 21:44:49 -04:00
Mike Pennisi
aa4c533d28
Refactor misc. statement tests for parsers
...
The tests for the parsing of various statement were expressed using
eval. This made the tests more complex than necessary and also prevented
the tests from providing value to ECMAScript parsers.
Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 21:44:49 -04:00
Mike Pennisi
c9249a8f92
Remove indirect tests
...
These tests are ostensibly designed to validate parsing of Regular
Expression literals--specifically those which use Unicode escape
sequences to declare flags. However, because the syntax is expressed in
terms of a string literal and then evaluated dynamically, the escape
sequences in use have no bearing on the program code which is ultimately
parsed. These tests therefore do not extend coverage in any meaningful
way and may be removed.
2019-03-31 20:26:12 -04:00
Mike Pennisi
e0120fcbd6
Refactor literal tests for parsers
...
The tests for the parsing of literal values were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.
Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 20:19:49 -04:00
Mike Pennisi
937d0b1df1
Remove redundant test
...
The production under test is also used in the following file:
test/language/literals/numeric/legacy-octal-integer-strict.js
That test expresses the syntax with literal source text, making it
useful for parsers. Remove this test in favor of the other.
2019-03-31 20:14:09 -04:00
jugglinmike
d5076e3e8e
Add tests for termination of "hashbang" comment ( #2104 )
2019-03-18 21:23:08 -04:00
Leo Balter
91dc2e635d
Merge pull request #2105 from jugglinmike/refactor-for-parsers-white-space
...
Refactor white space tests for parsers
2019-03-18 21:22:09 -04:00
Caio Lima
fd75ab0097
Adding tests to verify private fields on Proxy Objects ( #2099 )
2019-03-18 21:18:55 -04:00
Mike Pennisi
66b61a9fd6
Simplify and de-duplicate tests
2019-03-16 21:39:19 -04:00
Mike Pennisi
d7fdfe9571
Rename files
2019-03-16 21:34:16 -04:00
Leo Balter
47bf9d1db9
Merge pull request #2100 from leobalter/2033/features-private
...
Add missing feature tags
2019-03-14 14:51:48 -04:00
Leo Balter
14c3a6e839
Add new tests to observe required leading line terminator ( #2102 )
...
* Add new tests to observe required leading line terminator
Ref #2095
2019-03-14 14:51:02 -04:00
Leo Balter
1ce8166433
Use a line terminator for HTMLCloseComments
2019-03-14 13:33:48 -04:00
Leo Balter
3378de1020
Regenerate tests
2019-03-13 15:46:40 -04:00
Leo Balter
e227f54d01
Fix assertions previously not reached before
...
Fix #2049
2019-03-13 15:27:20 -04:00
Leo Balter
8e2a07d2e1
Merge pull request #2096 from anba/asynciter-fx
...
Test cases for async function and async generator edge-cases
2019-03-13 13:22:46 -04:00
Mathias Bynens
9339f8a5ce
Update RegExp Unicode property escape tests per Unicode 12 ( #2091 )
...
1cfedb79bb
https://github.com/tc39/ecma262/issues/1467
https://github.com/tc39/ecma262/pull/1468
2019-03-12 04:47:27 -04:00
André Bargull
3428a59ae8
Add test case for tc39/ecma262#1172
2019-03-11 10:34:46 -07:00
André Bargull
c843ff0228
Test for abrupt completion of PromiseResolve in AsyncFromSyncIteratorContinuation
...
Issue: tc39/ecma262#1461
PR: tc39/ecma262#1470
2019-03-11 10:34:44 -07:00
André Bargull
252ca73626
Add test that only explicit undefined return value is awaited in async generator
2019-03-11 10:34:43 -07:00
André Bargull
1111d4996d
Add test that return resumption value in async generator is awaited
2019-03-11 10:34:42 -07:00
André Bargull
9d711fdf11
Add test for "constructor" lookups and correct job order in for-await loop
2019-03-11 10:34:40 -07:00
André Bargull
bb838d8d6b
Add test when IteratorValue argument to AsyncGeneratorYield in yield* throws
2019-03-11 10:34:38 -07:00
André Bargull
c822f4c929
Fix existing linting errors, update error phase, and add a new flags linter ( #2086 )
2019-03-06 12:24:44 -05:00
André Bargull
334e905d2e
Add missing license headers in hashbang tests
2019-02-28 06:40:04 -08:00
Leo Balter
262216ed5b
Remove other leading empty lines in info blocks
2019-02-25 16:14:22 -05:00
Leo Balter
0fb6388682
Generate tests
2019-02-25 16:14:22 -05:00
Leo Balter
42a8594e56
fix files frontmatter after linting
2019-02-25 16:14:21 -05:00
Michael Maier
21dd214876
fix typo ( #2082 )
2019-02-25 11:21:04 -05:00
Robin Templeton
efa414ae00
Add tests for calling BigInt functions with fewer arguments than required ( #2075 )
2019-02-19 13:25:25 -05:00