4324 Commits

Author SHA1 Message Date
André Bargull
faed4fb089 Fix various test issues 2018-10-17 07:45:33 -07:00
Leo Balter
2ac5f1766e Add tests for delete expression returning true on non reference types 2018-10-16 19:47:25 -04:00
Leo Balter
061a8ea63a
Merge pull request #1853 from leobalter/dyn-import-part3
Add more cases for dynamic imports
2018-10-15 14:36:01 -04:00
Ms2ger
3113b90d55 Intl.RelativeTimeFormat: Add some basic tests for CanonicalizeLocaleList. 2018-10-15 13:41:46 -04:00
Ms2ger
e1d80f75c7 Intl.ListFormat: Add some basic tests for CanonicalizeLocaleList. 2018-10-15 13:41:46 -04:00
Ms2ger
a3d91b12e5 Intl.ListFormat: Add a test for unsupported options combinations.
This was changed in https://github.com/tc39/proposal-intl-list-format/pull/27.
2018-10-15 13:40:52 -04:00
Frank Tang
e5ae99c6ca Change tests to reflect https://github.com/tc39/proposal-intl-list-format/pull/27 (#1860)
* Changes Intl.ListFormat tests reflecting spec

Reflect https://github.com/tc39/proposal-intl-list-format/pull/27
while style:"narrow" and type is not "unit".

* add cases for throws

* remove commetns which cause lint error
2018-10-15 13:40:25 -04:00
Ujjwal Sharma
9dc33cc5b4 intl: fix mistyped test for array-like objects 2018-10-15 12:54:05 -04:00
Adrian Heine
21f6a86a6d Remove explicit sta.js includes
INTERPRETING.md states that sta.js has to be included unconditionally.
2018-10-15 12:45:55 -04:00
Rick Waldron
3bcb28e918 Generate tests 2018-10-15 12:43:16 -04:00
Mike Pennisi
36f5d9527f Refactor compound assignment tests for parsers
The tests for the parsing of compound assignment expressions 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.
2018-10-15 11:55:29 -04:00
Mike Pennisi
a3a5bedee4 Add esid metadata 2018-10-15 11:55:29 -04:00
Mike Pennisi
6870cc4a77 Rename files 2018-10-15 11:55:29 -04:00
Ms2ger
e527498bff Intl.Segmenter: Some initial tests. (#1844) 2018-10-15 11:29:25 -04:00
Ms2ger
f6dcb4fc2b Intl.ListFormat: Add some tests for the localeMatcher constructor option. (#1855)
This was added in https://github.com/tc39/proposal-intl-list-format/pull/25.

I don't know how to test that the option has any effect, so this just checks
that it is read and verified.
2018-10-15 11:04:34 -04:00
Leo Balter
206370b98e missing copyright header 2018-10-12 17:58:54 -04:00
Leo Balter
81d6bb21a9 Generate tests 2018-10-12 17:27:24 -04:00
Leo Balter
103ee25959 More coverage for namespace object 2018-10-12 17:27:00 -04:00
Leo Balter
b7e0a48725 Reuse fixture 2018-10-12 15:32:38 -04:00
Leo Balter
1eb6c6a546 Generate tests 2018-10-12 14:49:54 -04:00
Leo Balter
cce2f219f0 Add tests for export * as ns from mod to dyn imports 2018-10-12 14:49:53 -04:00
Leo Balter
3968c2d831 Migrate test for ns 2018-10-11 16:57:36 -04:00
Leo Balter
019322b114 Generate tests 2018-10-11 11:09:48 -04:00
Leo Balter
ec1d7ccc6f Rename imported to namespace 2018-10-11 11:09:48 -04:00
Leo Balter
1c119e323e Generate tests 2018-10-11 11:09:48 -04:00
Leo Balter
dc2da1558f Add tests for the resolved namespace obj 2018-10-11 11:09:48 -04:00
Leo Balter
070198fbad Generate tests 2018-10-11 11:09:47 -04:00
Leo Balter
f8fda5b6d2 Remove nested-with template for usage/catch tests
This should be well covered in the syntax templates and opens the path for tests with module code restrictions
2018-10-11 11:09:47 -04:00
Leo Balter
b0ec060e62 Add more cases for Dynamic Imports usage
- Add cases for mixing module and script code
- Rename test case from return promise to thenable
- Fix script code case with valid loaded fixture
- Add a test to assert a promise return
- Add case for specifier toString rejection
- Add case for specifier toString
- Test Assignment expression abrupt completion
- Test Promise return
2018-10-11 11:09:47 -04:00
Leo Balter
eb4401ee44
Merge pull request #1832 from leobalter/dyn-import-part2
More test cases for dynamic import
2018-10-09 12:04:41 -04:00
Ms2ger
f61c4beaaa Intl.RelativeTimeFormat: Fix copy/paste error in frontmatter. (#1851) 2018-10-09 11:30:01 -04:00
Adrian Heine né Lang
2234f0fc40 Fix syntax in test (#1841)
This was introduced in 6581e84949eb0db1a97513098c1413be433419ee.
2018-10-09 11:29:32 -04:00
Leo Balter
3450ed544e fix linting 2018-10-08 13:32:28 -04:00
Leo Balter
874f508077 Generate tests 2018-10-08 11:41:21 -04:00
Leo Balter
9e4fc1b1c2 Generate tests 2018-10-08 11:05:09 -04:00
Mike Pennisi
aac38cb368 Normalize coverage for var declarations
Add tests to mirror similar tests which were authored previously.
2018-10-07 16:49:50 -04:00
Mike Pennisi
b819c597ab Remove redundant test
This behavior is covered by another test in this directory:
`arguments-strict-single.js`. Although the syntax error happens to occur
within the body of a function expression, this distinction is not
significant enough to warrant the test's presence nor does it motivate
the introduction of many similar negative syntax tests which are
currently unavailable.
2018-10-07 16:49:49 -04:00
Mike Pennisi
6b00c8fbfe Rename and refactor tests
The tests for the parsing of variable declarations 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.
2018-10-07 16:49:49 -04:00
Mike Pennisi
ceb79988ae Relocate and refactor tests
The tests for the parsing of `for/in` loops 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. Move the tests to the `for-in` directory to better reflect
the grammar production that they test.
2018-10-07 16:48:42 -04:00
Mike Pennisi
835c202b36 Remove redundant and irrelevant tests
Two tests placed within the "variable" directory do not include a variable
declaration. Because the behavior they assert is covered by an existing
test (test/language/arguments-object/10.5-1gs.js), they may be removed
without reducing coverage.
2018-10-07 16:43:08 -04:00
Frank Tang
0866789361 numeric should be a boolean not a string 2018-10-05 18:43:50 -07:00
Leo Balter
3589fa9d82 Generate Tests 2018-10-05 17:17:41 -04:00
Leo Balter
8e28caa214 Add more coverage to dynamic import
- Add cases for invalid syntax
- Add valid cases
- nested imports
- add non existent file case
- Fix cases and templates to use a full importcall expr token
- add case for call expression position
- remove unnecessary module flag from templates
- Add templates for nested with
2018-10-05 17:17:32 -04:00
Ujjwal Sharma
f8e3a8ed11 Add let before variable declaration 2018-10-05 15:32:54 -04:00
Ujjwal Sharma
ec35b59e88 intl: increase coverage for the NumberFormat constructor
Increase the coverage for the constructor for Intl.NumberFormat by
ensuring that HasProperty(O, Pk) is properly called.
2018-10-05 15:32:54 -04:00
Leo Balter
00cfe1628c
Merge pull request #1831 from leobalter/1829-dyn-import-fixes
[dynamic import] Fix async test to verify completion
2018-10-05 12:41:12 -04:00
Timothy Gu
140d922d4c Add async-functions feature to more files (#1830) 2018-10-05 10:37:21 -04:00
Leo Balter
18f1225570 Generate tests 2018-10-05 10:33:48 -04:00
Leo Balter
754fe94c5d fixup! Generate tests 2018-10-04 16:21:11 -04:00
Rick Waldron
a7ba033337 Generate tests 2018-10-04 16:21:11 -04:00