3859 Commits

Author SHA1 Message Date
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
Leo Balter
6d6d52b78b
Merge pull request #2115 from gibson042/2019-03-update-CONTRIBUTING
Improve content and style of contribution guidelines
2019-04-02 13:58:25 -04: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
Richard Gibson
ca8e292310 Provide more useful and realistic test examples in CONTRIBUTING.md
Per advice from @leobalter, based upon content from test/language/expressions/dynamic-import
2019-03-29 14:30:36 -04:00
Richard Gibson
409c598faf Improve CONTRIBUTING.md formatting 2019-03-29 14:30:27 -04:00
Richard Gibson
35c7cb11de Update CONTRIBUTING.md vocabulary for consistency with YAML
"tag" has a specific and different meaning; the proper term for this page is "key"
cf. https://yaml.org/spec/1.2/spec.html#id2761292
2019-03-29 14:30:14 -04:00
Richard Gibson
bcb5a2cbdd Use consistent ordering for documenting test frontmatter keys 2019-03-29 14:30:00 -04:00
Leo Balter
de567d3aa5
Verify CCI path usage (#2110) 2019-03-26 12:19:15 -04:00
Leo Balter
95d1ea2141 Replace Node runs with XS for CircleCI 2019-03-25 13:09:13 -04:00
Leo Balter
ebbe13e2b5
Add CircleCI (#2106)
Transfer Travis jobs to CircleCI
2019-03-20 21:04:41 -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
1c70c90386 Add missing feature tags 2019-03-13 15:45:42 -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
Leo Balter
b78e085571
Merge pull request #2085 from anba/testparser
Update parseTestRecord to support hashbang tests
2019-02-28 10:26:37 -05:00
André Bargull
334e905d2e Add missing license headers in hashbang tests 2019-02-28 06:40:04 -08:00
André Bargull
41edfcebce Remove old test format parser and simplify yaml frontmatter parsing 2019-02-28 06:39:59 -08:00
Leo Balter
59b89a1c83
Merge pull request #2083 from leobalter/2034/yaml-extra-lines
Add lint check for leading empty lines in description and info blocks
2019-02-26 11:01:57 -05: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
aa03128e41 remove leading empty line from test cases 2019-02-25 16:14:21 -05:00
Leo Balter
42a8594e56 fix files frontmatter after linting 2019-02-25 16:14:21 -05:00
Leo Balter
e7092eacc4 set lint rules to avoid leading or trailing empty lines in frontmatter string values
Fix #2034
Ref #1997
2019-02-25 16:14:21 -05:00
Leo Balter
b4e15b3d5c fix parseTestRecord for optional license header at the top 2019-02-25 15:23:40 -05:00