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
Andy Wingo
298ad6907b
Add new test for receiver of toJSON on bigint values ( #2079 )
...
Spec link:
https://tc39.github.io/proposal-bigint/#sec-serializejsonproperty
Thanks to André Bargull for the test:
https://bugzilla.mozilla.org/show_bug.cgi?id=1528784
2019-02-19 13:23:41 -05:00
Frank Yung-Fong Tang
565d7d5b7d
Remove unreasonable expectation
2019-02-14 15:23:30 -05:00
Mike Pennisi
cc09757478
Test forward slash in RegularExpressionClassChar
2019-02-14 15:21:42 -05:00
Caio Lima
b9f43c0711
Adding destructuring-binding on feature list
2019-02-14 15:14:46 -05:00
Caio Lima
b8e92c2341
Added case to verify invalid syntax when using private field on object destructuring
2019-02-14 15:14:46 -05:00
Caio Lima
185e590880
Removed invalid super access tests and created properly syntax error checks
2019-02-14 15:12:48 -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
Leo Balter
6e4b434586
Apply review feedback
...
- indirect eval
- files renaming
- space after comma
2019-02-14 15:06:08 -05:00
Leo Balter
f13a0c5aaf
Tests with the raw flag can't use $DONOTEVALUATE();
2019-02-14 15:06:08 -05:00
Leo Balter
4ca5a94852
Final lint fix on tests
2019-02-14 15:06:08 -05:00
Leo Balter
353cf531d6
Apply review feedback for hashbang
2019-02-14 15:06:08 -05:00
Bradley Farias
da8ef2e779
Add tests for Hashbang comments
2019-02-14 15:06:08 -05:00
Caio Lima
4e3e82ee3f
Fixing async tests and other NIT changes
2019-02-06 18:18:48 -02:00
Caio Lima
442c3539a3
Added generated tests
2019-02-06 17:18:13 -02:00
Ross Kirsling
a066af90ea
Remove errant tab character. ( #2058 )
2019-02-04 12:03:46 -07:00
Timothy Gu
bafa05316e
Add test for ({* identifier}) ( #2060 )
...
Counterpart to language/expressions/object/prop-def-invalid-async-prefix.js.
2019-02-04 12:03:14 -07:00
Jake Champion
b4cf5de2e8
Fixed typo, `now` should be `no` ( #2061 )
2019-02-04 11:59:15 -07:00
Mathias Bynens
9280e1f872
Add tests for %TypedArray%.prototype.sort stability ( #2062 )
...
https://github.com/tc39/ecma262/pull/1433
2019-02-04 11:58:05 -07:00
Timothy Gu
e39604fa41
Fix missing ) ( #2059 )
2019-01-31 10:49:27 -07:00
Adrian Heine né Lang
38b1ce107b
Add missing tests for B.3.3.4 and B.3.3.5 ( #2050 )
2019-01-30 14:35:07 -07:00
André Bargull
3efcde4ba7
Add tests for setting class-name in ClassDefinitionEvaluation ( #2057 )
...
Spec PR: tc39/ecma262#1372
2019-01-30 14:34:32 -07:00
Leo Balter
fb9bb7502f
Merge pull request #2056 from anba/test-bugs-jan2019
...
Remove invalid private name tests and guard against missing bindings
2019-01-30 08:20:04 -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
Michael Ficarra
7238135940
add flat/flatMap to Array unscopables
2019-01-30 10:02:35 -05:00
Ross Kirsling
afe1b5adc7
Align copyright line with repo license.
2019-01-30 09:57:50 -05:00
Ross Kirsling
e855815840
Delete early-catch-var.js
2019-01-30 09:57:50 -05:00
Ross Kirsling
653a068481
Address feedback.
2019-01-30 09:57:50 -05:00
Ross Kirsling
815913a982
Test update for proposed Annex B.3.5 simplification
2019-01-30 09:57:50 -05:00
André Bargull
b11def3bf4
Global 'arguments' binding is not present in all runtime environments
2019-01-30 06:53:46 -08:00
André Bargull
3c81164266
Regenerate tests
2019-01-30 06:51:16 -08: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
Timothy Gu
5d39cad767
Add tests for roundTiesToEven rounding in Math.fround ( #2021 )
2019-01-28 11:33:14 -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
Rick Waldron
1068137f00
UpdateExpressions: fix descriptions ( #2051 )
2019-01-25 14:39:54 -05:00
Adrian Heine
04a41383b5
UpdateExpressions: No early error for arguments and eval in non-strict mode
...
According to sec-identifiers-static-semantics-assignmenttargettype,
`AssignmentTargetType` of `arguments` and `eval` in non-strict mode code is
`simple`.
sec-update-expressions-static-semantics-early-errors mandates early errors for
`UpdateExpression` if `AssignmentTargetType` is `invalid` or `strict`.
2019-01-25 12:39:02 -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
jugglinmike
9fccd9852e
Improve coverage for UniqueFormalParameters ( #2043 )
...
Previously, the early error prohibiting duplicate entries in
UniqueFormalParameters was only tested in terms of async functions. In
one case, this was misattributed to UniqeFormalParameters and only
enforced for strict mode code.
Extend coverage to the other function-creating productions which include
UniqueFormalParameters (i.e. method definitions and non-async arrow
functions), and update the existing tests to more accurately describe
the source of the error.
2019-01-23 14:07:19 -02:00
Mathias Bynens
d7c8a12e68
Remove invalid line terminator tests ( #2044 )
...
https://github.com/tc39/test262/pull/2020#issuecomment-456581449
2019-01-23 13:56:03 -02:00
Frank Yung-Fong Tang
4f1155c566
Change tests according to ecma402/pull/278 ( #2031 )
2019-01-18 14:15:37 -02:00
Nicolò Ribaudo
f624ca52d1
Regenerate tests
2019-01-17 21:40:39 +01:00
Leo Balter
5331ca05a2
Merge pull request #2032 from nicolo-ribaudo/patch-2
...
Update rs-private-getter-alt.case
2019-01-17 17:18:14 -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
Nicolò Ribaudo
2be05bc494
Regenerate tests
2019-01-12 00:59:46 +01:00
Nicolò Ribaudo
78a9fb81c6
Regenerate tests
2019-01-08 16:32:35 +01:00
Peter Wong
08d827565b
Increase coverage for %TypedArray%.prototype.map with species constructor ( #2019 )
2019-01-07 12:34:35 -02:00
Ross Kirsling
d0f57bff72
Ensure test file YAML blocks don't have a trailing space. ( #2018 )
2019-01-07 11:40:39 -02:00
Mike Pennisi
3468dad291
Improve coverage for line terminators
...
Previous commits restructured the tests for line terminators and made
coverage gaps more apparent. Introduce new files to improve coverage.
2019-01-01 14:01:09 -05:00
Mike Pennisi
8175f6c05e
Improve name of line terminator tests
2019-01-01 14:01:08 -05:00
Mike Pennisi
6b49b770d8
Refactor LT tests for parsers: token delimiters
...
The tests for the parsing of line terminators 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-01-01 13:48:58 -05:00
Mike Pennisi
e515abfa0e
Refactor LT tests for parsers: multi-line comment
...
The tests for the parsing of line terminators 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-01-01 13:48:58 -05:00
Mike Pennisi
0ec9dbe3b3
Refactor LT tests for parsers: single-line comment
...
The tests for the parsing of line terminators 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-01-01 13:48:57 -05:00
Mike Pennisi
f9ffa71c56
Refactor LT tests for parsers: string
...
The tests for the parsing of line terminators 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.
2019-01-01 13:48:56 -05:00
Mike Pennisi
10fb23049e
Refactor LT tests for parsers: RegExp
...
The tests for the parsing of line terminators 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.
2019-01-01 13:48:55 -05:00
Mike Pennisi
9f1d25c9e5
Remove duplicative tests
...
The behavior asserted by the removed tests is covered by other files.
- test/language/line-terminators/7.3-1.js duplicates
test/language/line-terminators/S7.3_A1.3.js
- test/language/line-terminators/7.3-2.js duplicates
test/language/line-terminators/S7.3_A1.4.js
- test/language/line-terminators/7.3-3.js duplicates
test/language/line-terminators/S7.3_A3.3_T1.js
- test/language/line-terminators/7.3-4.js duplicates
test/language/line-terminators/S7.3_A3.4_T1.js
- test/language/line-terminators/7.3-9.js duplicates
test/language/line-terminators/S7.3_A6_T3.js
- test/language/line-terminators/7.3-10.js duplicates
test/language/line-terminators/S7.3_A6_T4.js
- test/language/line-terminators/S7.3_A1.1_T1.js duplicates
test/language/line-terminators/S7.3_A1.1_T2.js
- test/language/line-terminators/S7.3_A1.2_T1.js duplicates
test/language/line-terminators/S7.3_A1.2_T2.js
- test/language/line-terminators/S7.3_A3.1_T2.js duplicates
test/language/line-terminators/S7.3_A3.1_T3.js
- test/language/line-terminators/S7.3_A3.2_T3.js duplicates
test/language/line-terminators/S7.3_A3.2_T1.js
- test/language/line-terminators/S7.3_A3.3_T2.js duplicates
test/language/line-terminators/S7.3_A3.3_T1.js
- test/language/line-terminators/S7.3_A3.4_T2.js duplicates
test/language/line-terminators/S7.3_A3.4_T1.js
- test/language/line-terminators/S7.3_A4_T1.js duplicates
test/language/line-terminators/S7.3_A3.1_T1.js
- test/language/line-terminators/S7.3_A5.1_T1.js duplicates
test/language/line-terminators/S7.3_A5.1_T2.js
- test/language/line-terminators/S7.3_A5.2_T1.js duplicates
test/language/line-terminators/S7.3_A5.2_T2.js
2019-01-01 13:38:43 -05:00
Mike Pennisi
23594b8179
Correct tests
...
These files were authored to test the effect of the carriage return
character, but that character was not present in the source text.
Insert the character as intended by the authors.
2019-01-01 13:38:31 -05:00
Leo Balter
f77b930e67
Move non generated files
2018-12-21 15:47:01 -05:00
Leo Balter
2907b7110a
Generate tests
2018-12-21 15:47:01 -05:00
Leo Balter
4d40dd5ade
Generate tests
2018-12-21 15:47:01 -05:00
Leo Balter
d73548b027
Generate tests
2018-12-21 15:47:01 -05:00
Leo Balter
e403eea331
Fix false positives
2018-12-21 10:50:23 -05:00
Leo Balter
7375dcb080
Remove duplicates
2018-12-21 10:50:23 -05:00
Leo Balter
258da539bc
refactor coverage for flatMap
2018-12-20 13:08:21 -05:00
Leo Balter
02af6a5552
Regenerate tests
2018-12-20 12:53:31 -05:00
Leo Balter
7a1eed0134
Generate tests
2018-12-20 12:53:31 -05:00
Leo Balter
20c38d3396
Expand tests for duplicate lexical names of vardeclarednames in the same statementlist
2018-12-20 12:53:31 -05:00
Leo Balter
3703d2bad1
Generate tests
2018-12-20 12:49:50 -05:00
Leo Balter
6986a9166d
Generate tests
2018-12-20 12:49:50 -05:00
Rick Waldron
73705f8801
UpdateExpressions: add necessary changes to tests to reflect latest specification.
2018-12-20 12:48:59 -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
Peter Marshall
b3efcd2f3f
Consistently use spaces in features lists ( #2000 )
2018-12-17 17:00:04 -02: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