Mike Pennisi
a7deb7bcce
Add tests for `arguments` within function body
2018-10-28 16:23:38 -04:00
Rick Waldron
f1e362d558
Fix typos; generate tests ( #1907 )
2018-10-26 17:11:05 -04:00
Kubilay Kahveci
b7fb4ade5e
Generate tests
2018-10-26 15:12:43 -04:00
Leo Balter
70248aa166
Generate tests
2018-10-26 14:41:35 -04:00
Leo Balter
38be52c525
fix usage of assertFalse
...
Fixes #1904
2018-10-26 14:34:24 -04:00
Ms2ger
72ab472057
Intl.Segmenter: Submit batch of V8 tests for the iterators.
2018-10-26 12:00:39 +02:00
Leo Balter
1538a93bc1
typo
2018-10-25 13:30:18 -04:00
Leo Balter
09e608edad
Add cases for ImportCall syntax reused in CallExpressions
2018-10-25 13:30:18 -04:00
Leo Balter
ca87891961
Add case for valid import in a new covered expression
2018-10-25 13:30:18 -04:00
Leo Balter
cd9ca65787
Generate tests
2018-10-25 13:30:18 -04:00
Leo Balter
51a0bad7d4
Generate tests
2018-10-25 13:30:18 -04:00
Leo Balter
a347df3aae
Add tests for invalid expressions with import() with early ReferenceErrors
2018-10-25 13:30:18 -04:00
Leo Balter
d641be96b4
Add test for import() used from eval
2018-10-25 13:30:18 -04:00
Leo Balter
54aba308b7
import() must not allow a escape sequence
2018-10-25 13:30:18 -04:00
Ms2ger
e847c6ebb0
Intl.Collator: Add a test for search and sort in German.
...
Ref: https://github.com/tc39/ecma402/issues/256 .
2018-10-25 13:08:08 -04:00
Ms2ger
0d07ed06c0
Intl.Segmenter: Submit batch of V8 tests for segment().
2018-10-25 10:15:11 -04:00
Leo Balter
91bf2474c2
Add more cases for import.meta and new promise instances
2018-10-24 12:27:40 -04:00
Leo Balter
bcdc613df7
Add case for custom toprimitive operations
2018-10-24 12:27:40 -04:00
Leo Balter
23e9d7d58e
Add another case for indirect module binding update
...
Also cases for double failing resolutions
2018-10-24 12:27:40 -04:00
Leo Balter
aebfbdd9df
Add more edgy cases for import()
...
Also rename test/language/expressions/dynamic-import/assignment-expression/
2018-10-24 12:27:40 -04:00
Ms2ger
0dcec72e34
Intl.ListFormat: Test the order of properties in the result of resolvedOptions().
2018-10-24 12:22:08 -04:00
Ms2ger
b8b93ec421
Intl.RelativeTimeFormat: Test the order of properties in the result of resolvedOptions().
2018-10-24 12:21:25 -04:00
Rick Waldron
757491d4f8
Corrections to export * specifier paths. Fixes gh-1883 ( #1894 )
2018-10-24 12:17:56 -04:00
Ms2ger
e1be2c8f8b
Intl.Segmenter: Add some tests for the constructor.
2018-10-24 10:13:31 -04:00
Ms2ger
52dfda893d
Intl.Segmenter: Test the order of properties in the result of resolvedOptions().
2018-10-24 09:54:54 -04:00
Rick Waldron
f247a5fe09
Revert "Improve assertion handling when comparison causes failure via coercion"
...
This reverts commit c49c356744
.
2018-10-23 17:21:17 -04:00
Rick Waldron
c49c356744
Improve assertion handling when comparison causes failure via coercion
2018-10-23 17:00:47 -04:00
Ms2ger
480f11f612
Intl.Segmenter: API tests for the segment method.
2018-10-23 16:18:05 -04:00
André Bargull
c3e384c8c5
Add initial tests for import.meta ( #1888 )
...
Fixes #1342
2018-10-23 15:23:08 -04:00
Mathias Bynens
8869799c6d
Rebase, regenerate, and update tests
2018-10-23 13:51:17 +02:00
Mathias Bynens
b9daa57dcb
Rename to $DONOTEVALUATE per @leobalter's suggestion
2018-10-23 13:51:17 +02:00
Mathias Bynens
e3feffb01e
Move `throw "…"` for negative parsing errors to a helper function
...
Closes #1634 .
2018-10-23 13:51:16 +02:00
Leo Balter
3936950114
Fix test previously invalid for strict mode
2018-10-19 12:43:39 -04:00
Leo Balter
fc250a310c
fix test with unnecessary async generator
2018-10-19 12:43:39 -04:00
Leo Balter
98b3cc95f7
flag resolved import specifiers in test files
2018-10-19 12:43:39 -04:00
Leo Balter
c93b1075f5
Generate tests
2018-10-19 12:43:39 -04:00
Leo Balter
7ee8091259
Move namespace test files
2018-10-19 11:51:40 -04:00
Leo Balter
20b6a3b0a7
Move dynamic-import tests to test/language/expressions
2018-10-19 11:48:17 -04:00
Leo Balter
e620039286
Add some more cases for import()
2018-10-18 17:17:54 -04:00
Leo Balter
f1b337cf55
Generate tests
2018-10-18 17:06:26 -04:00
Leo Balter
eedbf4cf1d
Generate tests
2018-10-18 17:06:26 -04:00
Leo Balter
aefadabda7
Generate tests
2018-10-18 17:06:26 -04:00
Leo Balter
a4d102e020
Add tests for Assignment Expressions in Dynamic Imports ( #1865 )
2018-10-18 16:14:02 -04:00
André Bargull
100b3b4afe
Add missing includes for await tests ( #1874 )
2018-10-18 12:02:25 -04:00
Maya Lekova
b98c45ca5a
AsyncFunction: Add tests ensuring the new 1-tick await behaviour ( #1843 )
...
* AsyncFunction: Add tests ensuring the new 1-tick await behaviour
This commit adds 3 tests ensuring the optimized behaviour of await
(see https://github.com/tc39/ecma262/pull/1250 ) in the following cases:
- async functions
- yielding from async generator functions
- for-await-of loops
* AsyncFunction: Add tests ensuring the monkey-patched promises behaviour
This commit adds 2 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250 ) in the following cases:
- awaiting on a native promise with monkey-patched "then"
- awaiting on a non-native promise (a "thenable" object)
* AsyncFunction: Add tests ensuring the non-native promises behaviour
This commit adds 1 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250 ) in the following cases:
- awaiting on a non-promise, non-thenable object
It also renames the previous test for non-promise (a "thenable" object)
to distinguish from the new case.
The commit adds checks for proper await/promises interleaving in the
aforementioned cases and includes a small code clean-up.
* AsyncFunction: Refactor tests ensuring the new 1-tick await behaviour
Gather all the tests to their appropriate folder and update copyright header.
2018-10-17 16:10:09 -04:00
André Bargull
4d6e47bca9
Change RelativeTimeFormat -> ListFormat in ListFormat test
2018-10-17 13:35:58 -04:00
Ms2ger
fa16d7df3f
Intl: Add tests for table iteration order.
...
The order was defined in <https://github.com/tc39/ecma402/pull/279 >.
2018-10-17 12:59:38 -04:00
André Bargull
d3e5b818d9
Revert "remove "invalid" from invalid date of "cu" and "nu""
...
This reverts commit a1c3929c35
.
2018-10-17 07:46:46 -07:00
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 6581e84949
.
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
Leo Balter
d92d35605b
missing fixup
2018-10-04 16:16:35 -04:00
Leo Balter
292fd0c956
fix test in module/script modes
2018-10-04 16:16:35 -04:00
Leo Balter
7f69f1c6bf
Generate tests
2018-10-04 16:16:35 -04:00
Leo Balter
dac8fd4975
Recover Fixture files
2018-10-04 16:16:35 -04:00
Leo Balter
b13b5b9843
Regenerate tests
2018-10-04 16:16:35 -04:00
Leo Balter
724e3d7ccb
Regenerate tests
2018-10-04 16:16:35 -04:00
Leo Balter
7347b2a121
fix fixtures folders and nit picking on tests
2018-10-04 16:16:35 -04:00
Leo Balter
0a18f4068b
remove duplicates, fix fixture folder
2018-10-04 16:16:35 -04:00
Leo Balter
1846d33c29
Regenerate tests
2018-10-04 16:16:35 -04:00
Leo Balter
54689ffa69
Update checklist and other fixups
2018-10-04 16:16:35 -04:00
Leo Balter
e8305a7920
Regenerate tests
2018-10-04 16:16:35 -04:00
Leo Balter
24d1a78015
fix folders to fixtures
2018-10-04 16:16:35 -04:00
Leo Balter
bc13b8a7c1
Regenerate tests
2018-10-04 16:16:35 -04:00
Leo Balter
fdcb06e093
move catch tests to a separate folder
2018-10-04 16:16:35 -04:00
Leo Balter
6150f24d25
Regenerate tests
2018-10-04 16:16:35 -04:00
Rick Waldron
90e69a3b59
Dynamic Imports: eval export default class imports
2018-10-04 16:16:35 -04:00
Rick Waldron
a3eef3f39f
Generate tests
2018-10-04 16:16:35 -04:00
Rick Waldron
c77078809c
Dynamic Imports: initial cases, templates, non-generated tests and fixtures
2018-10-04 16:16:35 -04:00
Ujjwal Sharma
f8e0bf6751
intl: fix dicey test case
2018-10-04 14:30:22 -04:00
Leo Balter
5896ba49be
Generate tests
2018-10-04 10:32:01 -04:00
Ujjwal Sharma
ff8b10c448
intl: increase coverage for the Intl.NumberFormat constructor
...
Increase coverge for the Intl.NumberFormat constructor by testing that
Get(O, P) and ToString(arg) are properly called.
2018-10-03 17:32:33 -04:00
Leo Balter
48cf391412
Revert "Fix "undefiend" typo in unreserved-words.js ( #1816 )" ( #1819 )
...
This reverts commit 7e65999731
.
2018-10-03 17:11:05 -04:00
Andrew McCreight
7e65999731
Fix "undefiend" typo in unreserved-words.js ( #1816 )
...
I'm not an expert on this, but I'm pretty sure this is supposed to be "undefined" not "undefiend".
2018-10-03 15:14:41 -04:00
Frank Tang
a1c3929c35
remove "invalid" from invalid date of "cu" and "nu"
2018-10-03 13:22:29 -04:00
Ujjwal Sharma
041d5acd5e
Update test to actually check properties
2018-10-03 13:13:58 -04:00
Ujjwal Sharma
de416c28c3
intl: increase coverage from the NumberFormat constructor
...
Improve coverage for the Intl.NumberFormat constructor by testing that
it accepts Array-like objects and handles them properly.
2018-10-03 13:13:58 -04:00
Ujjwal Sharma
cd55e30938
Update test to actually check properties
2018-10-03 11:07:06 -04:00
Ujjwal Sharma
af0f53bb40
intl: increase coverage for the NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat constructor by testing that
passing a string value to the Intl.NumberFormat constructor is
equivalent to passing an Array containing the same string value.
2018-10-03 11:07:06 -04:00
Richard Gibson
e064fcd7ce
Remove redundant JSON test
2018-10-03 11:06:32 -04:00
Richard Gibson
58e308753c
Fix grammar in JSON.stringify tests
2018-10-03 11:06:32 -04:00
Richard Gibson
d961fcc905
Add feature for well-formed-stringify tests
2018-10-03 11:06:32 -04:00
Richard Gibson
ce967f7a86
Add tests for proposal-well-formed-stringify
...
* unpaired surrogate escape sequences
2018-10-03 11:06:32 -04:00
Richard Gibson
783fc5d8bb
Remove redundant test
2018-10-03 11:06:32 -04:00
Richard Gibson
d6e83453b2
Simplify and improve control character escaping tests
2018-10-03 11:06:32 -04:00
Richard Gibson
61fdc701fa
Remove duplicate test
2018-10-03 11:06:32 -04:00
Richard Gibson
950d58a7ca
Improve test description grammar
2018-10-03 11:06:32 -04:00
Rick Waldron
6581e84949
Intl.Locale: constructor-options-*.js fixups ( #1798 )
2018-10-03 10:24:38 -04:00
Rick Waldron
0ead0130ea
Intl.NumberFormat: cannot use assert.sameValue to compare object references.
2018-10-02 15:03:52 -04:00
Ujjwal Sharma
bba2429cad
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat constructor by adding tests
checking if appropriate default values are used.
2018-10-02 14:51:22 -04:00
Frank Tang
5de1831c48
Remove "ar-ma-u-ca-islamicc" test
2018-10-02 14:50:45 -04:00
Ujjwal Sharma
e9946587b9
Update test to include object and symbol
2018-10-02 14:49:00 -04:00
Ujjwal Sharma
bb7585bdaf
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat class contructor by adding
tests for checking that it calls ToObject on the options argument.
2018-10-02 14:49:00 -04:00
Ujjwal Sharma
24386286f1
Update filenames and fix failures
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
2ecd230b63
Update test to include object and symbol
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
5fe9773f44
intl: increase coverage for NumberFormat constructor
...
Increase coverage for the Intl.NumberFormat class contructor by adding
tests for checking that it calls ToObject on the locales argument.
2018-10-02 14:48:37 -04:00
Ujjwal Sharma
5fae9deb1f
intl: rework Intl.NumberFormat.prototype.formatToParts tests
...
Rework the available tests for Intl.NumberFormat.prototype.formatToParts
to improve consistency and readability.
2018-09-27 11:03:16 -04:00
Ujjwal Sharma
41bf0ee344
intl: add assertion to test that the result for default parameter
...
Add an assertion to the test for default parameters in Intl.NumberFormat's
method formatToParts checking that both the values are equal to the correct
result.
2018-09-27 11:00:55 -04:00
Leo Balter
d544eacedf
assert calls order for Symbol.match on matchAll usage ( #1795 )
...
Fix #1794
2018-09-26 11:37:19 -04:00
Rick Waldron
37190a1deb
Intl.Locale.prototype.numeric: the feature is not optional, therefore the tests are not optional
2018-09-26 11:06:03 -04:00
Ms2ger
584b651edf
Intl.Locale: Expect boolean values from the numeric getter.
...
The spec changed in <https://github.com/tc39/proposal-intl-locale/pull/59 >.
2018-09-26 11:03:22 -04:00
Ms2ger
5b0f7e19db
Intl.Locale: Refactor the tests for the numeric option.
2018-09-26 11:02:40 -04:00
André Bargull
3a1bcae4d1
Expect leading sign when the input is negative zero
2018-09-26 10:38:35 -04:00