Commit Graph

2886 Commits

Author SHA1 Message Date
Kevin Gibbons e80d8a184a split unicode-property-names.js 2018-11-05 15:34:03 -08:00
Kevin Gibbons 9bc9116656 split unicode-malformed.js 2018-11-05 15:23:03 -08:00
Kevin Gibbons 296f47a008 split non-unicode-property-names.js 2018-11-05 15:12:23 -08:00
Kevin Gibbons de339e98d6 split non-unicode-malformed.js 2018-11-05 14:58:03 -08:00
Leo Balter 69c1efd325 Generate tests 2018-11-05 12:17:14 -05:00
Leo Balter ecb5fcbe33
Merge pull request #1840 from jugglinmike/refactor-for-parsers-var
Refactor variable declaration tests for parsers
2018-11-05 10:12:24 -05:00
Frank Tang 72f1cfa2ab In en/ko/fr 'loose' may break more than normal in new CLDR version 2018-11-02 14:42:37 -04:00
Richard Gibson 5b3d429e28 Move cross-realm tests into their own files 2018-11-02 14:39:23 -04:00
Richard Gibson 6da621f161 Assert error when invoking any %RegExpPrototype%-aware getter on cross-realm RegExp.prototype 2018-11-02 14:39:23 -04:00
Richard Gibson 9e0410814a Test cross-realm use of RegExp source getter in both directions 2018-11-02 14:39:23 -04:00
Richard Gibson 823af01575 Assert error when invoking RegExp source getter on cross-realm RegExp.prototype
RegExp.prototype is not a RegExp, and the algorithm only special-cases
(same-realm) %RegExpPrototype%.
2018-11-02 14:39:23 -04:00
Rick Waldron 314442498e Fix Intl.Segmenter branding.js
Based on: 44fc8165d5/implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:45:34 -04:00
Frank Tang d38e98d1f3 Fix formatToParts expectation @ RelativeTimeFormat
Fix wrong expectations of
Intl.RelativeTimeFormat.prototype.formatToParts
Add tests to cover "group", "decimal" and "fraction".
2018-10-31 12:38:29 -04:00
Rick Waldron 1fb8e8d22f Merge branch 'segmenter-v8' of git://github.com/Ms2ger/test262 into Ms2ger-segmenter-v8
* 'segmenter-v8' of git://github.com/Ms2ger/test262:
  Intl.Segmenter: Submit batch of V8 tests for the iterators.

# Conflicts:
#	implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:35:49 -04:00
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
André Bargull d9f67d53d1 Move the extra precision tests into separate files
This will allow implementations to test the rest of the number formatting tests,
even if the extra precision support isn't implemented.
2018-09-26 10:38:35 -04:00
André Bargull 4bc96880a1 Add missing explicit ToString conversion for symbol values and ensure the expected NaN result is a (locale-dependent) string 2018-09-26 10:38:35 -04:00
André Bargull 3febd4c536 Update matchAll tests to reflect latest spec proposal 2018-09-26 10:38:35 -04:00
Leo Balter 46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
jugglinmike 42ed4291f5 Refactor increment/decrement tests for parsers (#1786)
The tests for the parsing of postfix increment, postfix decrement,
prefix increment, and prefix decrement 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-09-24 12:29:30 -04:00
Kevin Gibbons 89ec038cf2 remove some trailing commas in calls 2018-09-21 10:04:33 -04:00
Ujjwal Sharma cdd91e2895 Improve ToNumber test for NumberFormat.format 2018-09-20 17:25:14 -04:00
Ujjwal Sharma 7a87bde265 intl: increase coverage for NumberFormat.format
Increase test coverage for Intl.NumberFormat.prototype.format by adding
a check for testing if it calls ToNumber (7.1.3) on its argument.
2018-09-20 17:25:14 -04:00
Ujjwal Sharma a6412918d2 Simplify default value check of NumberFormat.format 2018-09-19 15:23:30 -04:00
Ujjwal Sharma cbfa2c5f00 intl: increase coverage for NumberFormat
Increase coverage for Intl.NumberFormat by adding a test for format
checking it's default value.
2018-09-19 15:23:30 -04:00
Kevin Gibbons 92a96f068e Remove bigint feature flag for built-ins/Atomics/wait/was-woken-before-timeout.js 2018-09-19 10:58:34 -04:00
Kevin Gibbons 05cbb5f8ae Fix feature flag in TypedArrayConstructors/Float32Array/length.js 2018-09-19 10:58:34 -04:00
Ujjwal Sharma 94cb047ab8 Update assert failure messages 2018-09-18 14:55:11 -04:00
Ujjwal Sharma 0c89259da5 intl: refactor tests for NumberFormat 2018-09-18 14:55:11 -04:00
Kubilay Kahveci 395adc3a7c Generate tests 2018-09-18 14:16:20 -04:00
Ujjwal Sharma fec7982e09 Update test case description 2018-09-18 11:42:59 -04:00
Ujjwal Sharma 490f911ab6 Refactor value check for prop-desc 2018-09-18 11:42:59 -04:00
Ujjwal Sharma 24c29db550 Rename initial-value to configurable and add initial check to prop-desc 2018-09-18 11:42:59 -04:00
Ujjwal Sharma e566c813b5 Add additional initial value tests 2018-09-18 11:42:59 -04:00
Ujjwal Sharma c129ac8546 intl: improve coverage for Intl.NumberFormat
Add tests for Intl.NumberFormat.prototype[@@toStringTag].
2018-09-18 11:42:59 -04:00
Ms2ger 9271068a83 Intl: Add tests for throwing getters in options objects. 2018-09-18 11:39:47 -04:00
Ujjwal Sharma 12055caa1c Add symbol to list of invalid targets 2018-09-17 15:59:58 -04:00
Ujjwal Sharma db238a1abe intl: improve coverage for Intl.NumberFormat
Add Intl.NumberFormat.prototype.formatToParts to the test
this-value-not-numberformat.js to check if a TypeError is thrown if the
"this" value for the function call isn't a valid NumberFormat object.
2018-09-17 15:59:58 -04:00
Leo Balter 3166523832 Add basic coverage for Symbol.asyncIterator 2018-09-17 10:50:33 -04:00
Andrew McCreight c278f59416
Fix typo in test message 2018-09-14 12:05:16 -07:00
Leo Balter 317cacdcc9 Fix test generation 2018-09-13 14:55:32 -04:00
Rick Waldron 5c02a094cb Generate tests 2018-09-13 10:23:49 -04:00
Rick Waldron 6bedd8f1c6
Merge pull request #1717 from leobalter/1711-fixes
Apply fixes on recent class element tests
2018-09-11 11:22:43 -04:00
Rick Waldron 2c714ede1d
Merge pull request #1719 from leobalter/private-fields-methods-whitespace-syntax-error
Private fields and methods whitespace syntax error
2018-09-11 11:20:44 -04:00
Leo Balter a17484e230 Generate Tests 2018-09-10 17:13:06 -04:00
Leo Balter b056d138fa generate tests 2018-09-10 14:15:40 -04:00
Leo Balter 5cdbf084a7 Generate tests 2018-09-10 14:13:39 -04:00
Rick Waldron 6aa46d0ddb
Merge pull request #1707 from leobalter/private-methods-args
Add class private methods (include static) to arguments templates
2018-09-10 11:57:40 -04:00
Leo Balter a9837df144 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter e28a6f37d0 remove old duplicates 2018-09-10 11:20:40 -04:00
Leo Balter 7766d0fb66 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 94a40cb474 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 8524805f25 Final cases to move to tests generation 2018-09-10 11:20:40 -04:00
Leo Balter bcfc576af4 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter daea4efc57 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 20217a7eeb add cases for static method names named prototype 2018-09-10 11:20:40 -04:00
Leo Balter ef591384d8 Remove old duplicate tests 2018-09-10 11:20:40 -04:00
Leo Balter ee9739c699 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter af9bcfef5f Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 92c83dfbd4 Add cases for non-ctor methods containing direct super 2018-09-10 11:20:40 -04:00
Leo Balter bf5661bf60 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 46e03c3875 add generation cases for special methods with propname constructor 2018-09-10 11:20:40 -04:00
Leo Balter 93635ca3b2 Assert extensibility of dataview objects 2018-09-10 11:13:11 -04:00
Ms2ger c52f9cb769 Intl: Add tests for subclassing Locale, ListFormat and RelativeTimeFormat.
Fixes #1705.
2018-09-07 15:53:10 +02:00
Leo Balter eae139d8ef Generate tests 2018-09-04 17:10:51 -04:00
Leo Balter 2c9583a309 Generate tests 2018-09-04 12:40:30 -04:00
Leo Balter 8b91e600d6
Merge pull request #1701 from leobalter/1697-features
Add missing features tags for class fields templates and cases
2018-09-04 12:27:24 -04:00
Ms2ger f98218f831 Intl.ListFormat: Initial tests. (#1679) 2018-08-31 15:53:11 -04:00
Leo Balter a4faf41ed6 Generate tests 2018-08-31 15:22:43 -04:00
Ashley Hauck 835c85c26e TypedArray.prototype.sort: check result of compareFn is immediately converted ToNumber (#1694) 2018-08-27 14:27:27 -04:00
Leo Balter fa36c45083 Fix generated tests 2018-08-21 16:32:10 -04:00
Leo Balter dbcd388154 Remove duplicate of test/language/statements/class/fields-privatename-constructor-err.js 2018-08-21 16:24:37 -04:00
Leo Balter e25e53c0a7 Fix tests for #constructor 2018-08-21 16:11:27 -04:00
Leo Balter 45a31876e7 Fix tests for computed names in class fields - ctor and prototype 2018-08-21 15:50:39 -04:00
Leo Balter 3690d98e27 Generate tests 2018-08-21 12:47:19 -04:00
Leo Balter dacc69a066
Generate tests 2018-08-21 12:17:05 -04:00
Leo Balter 9a7fa8cb91 Generate tests 2018-08-20 17:12:40 -04:00
Leo Balter de1bbd65c8 Generate tests 2018-08-20 16:38:54 -04:00
Leo Balter 96809308fd Generate tests 2018-08-20 16:38:54 -04:00
Leo Balter c5a1a4a24b Generate tests 2018-08-20 16:38:54 -04:00
Rick Waldron 331a3964d5 Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron aee9dc163e Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron f222b94f2a Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron ad9fd16bd1 Class Fields: convert .js file to .case 2018-08-20 16:38:52 -04:00
Rick Waldron 1466650ca3 Class Fields: add private name propname errors 2018-08-20 16:38:52 -04:00
Rick Waldron 734544272b Class Fields: convert propname-error into non-generated to avoid creating erroneous tests where restrictions do not align. 2018-08-20 16:38:52 -04:00
Rick Waldron 3996741ca0 Class Fields: Remove templates that cause erroneous tests to be created. 2018-08-20 16:38:52 -04:00
Rick Waldron 90e8859cdd Class Fields: Updating frontmatter 2018-08-20 16:38:52 -04:00
Valerie R Young 5d014bdfba classfields: field definition abrupt completion tests
# Conflicts:
#	test/language/statements/class/classelementname-abrupt-completion.js
#	test/language/statements/class/fielddefinition-initializer-abrupt-completion.js
#	test/language/statements/class/super-fielddefinition-initializer-abrupt-completion.js
2018-08-20 16:38:52 -04:00
Leo Balter 1307fa8f44 some quick fixes for Array.prototype.{flat,flatMap} tests 2018-08-20 11:16:54 -04:00
Leo Balter d263e2ccc9
Merge pull request #1686 from rhuanjl/proxyFlat
Array.prototype.{flat,flatMap} property access count
2018-08-20 10:44:16 -04:00
rhuanjl 1bffb14efb Array.prototype.flat and Array.prototype.flatMap property access count 2018-08-20 06:31:04 +01:00
André Bargull d7d154b3bc Remove requirement that ToNumber(value) completes in less than $262.agent.MAX_TIME_EPSILON
$262.agent.MAX_TIME_EPSILON was intended to be used for callers like `Atomics.wait(typedArray, indexNumber, valueNumber, timeoutNumber)` where all parameters with the `Number` suffix denote values which are already Number values. It should not be used for `Atomics.wait(typedArray, indexObject, valueObject, timeoutObject)` where all parameters with the `Object` suffix denote values which are Object values, because in that case we'd require that `ToNumber(objectValue)` (potentially invoked multiple times) completes in less than 100 milliseconds (the default value for MAX_TIME_EPSILON).

Also removes $262.agent.MAX_TIME_EPSILON because it is now no longer used.
2018-08-19 10:29:29 -04:00
Leo Balter ab436c4651
Merge pull request #1677 from tc39/ofe-use-verifyproperty
Object.fromEntries: use verifyProperty; add specification details
2018-08-17 18:06:19 -04:00
Leo Balter d901922690
Merge pull request #1682 from Ms2ger/rtf-supportedLocalesOf
Intl.RelativeTimeFormat: Add some more tests for supportedLocalesOf.
2018-08-17 18:04:34 -04:00
Leo Balter f9d549329a
Merge pull request #1681 from Ms2ger/rtf-pl-fix
Intl.RelativeTimeFormat: Fix copy/paste errors in Polish tests.
2018-08-17 18:03:01 -04:00
Leo Balter fcefbc7945
Merge pull request #1678 from Ms2ger/rtf-options-non-object
Intl.RelativeTimeFormat: Add some tests for non-object options arguments to the constructor.
2018-08-17 18:01:59 -04:00
André Bargull cd101873ba Fix expected values for 'quarter' in RelativeTimeFormat 2018-08-17 09:15:38 -07:00
André Bargull 0aa1f70c14 Fix typo: nofity -> notify 2018-08-17 07:48:44 -07:00
André Bargull 8879820a8f Make RegExp/CharacterClassEscapes tests faster across all engines 2018-08-17 07:48:42 -07:00
Ms2ger 867b1ab87d Intl.RelativeTimeFormat: Add some more tests for supportedLocalesOf. 2018-08-16 15:18:05 +02:00
Ms2ger c82ea326a8 Intl.RelativeTimeFormat: Fix copy/paste errors in Polish tests. 2018-08-16 10:04:31 +02:00
Ms2ger 3161b18f71 Intl.RelativeTimeFormat: Add some tests for non-object options arguments to the constructor. 2018-08-14 17:43:32 +02:00
Rick Waldron ff475fce11 Object.fromEntries: use verifyProperty; add specification details 2018-08-13 15:15:02 -04:00
Rick Waldron 55ffeaf5cf Object.fromEntries: fix file names 2018-08-13 12:24:57 -04:00
Kevin Gibbons 60b9467630 Two more simple tests 2018-08-13 10:25:09 -04:00
Kevin Gibbons 7f694d4718 Object.fromEntries: add basic tests 2018-08-13 10:25:09 -04:00
Rick Waldron 2c39868519 Merge remote-tracking branch 'ms2ger/rtf-supportedLocalesOf-basic'
* ms2ger/rtf-supportedLocalesOf-basic:
  Intl.RelativeTimeFormat: Add a basic test for the functionality of supportedLocalesOf().
2018-08-10 15:36:01 -04:00
Rick Waldron b893503aa8 Intl.DateTimeFormat: formatToParts nitpicking 2018-08-10 15:35:04 -04:00
Rick Waldron c0e494eb6a Merge branch 'patch-1' of git://github.com/phistuck/test262 into phistuck-patch-1
* 'patch-1' of git://github.com/phistuck/test262:
  Added a legal part types test
2018-08-10 15:29:36 -04:00
Rick Waldron 9ddd49d49b Merge branch 'remove-assert.throws.early' of git://github.com/mathiasbynens/test262 into mathiasbynens-remove-assert.throws.early
* 'remove-assert.throws.early' of git://github.com/mathiasbynens/test262:
  Remove assert.throws.early
2018-08-10 15:26:31 -04:00
Rick Waldron 3a517cb7a7 Merge remote-tracking branch 'ms2ger/rtf-unit-invalid-plausible'
* ms2ger/rtf-unit-invalid-plausible:
  Intl.RelativeTimeFormat: Test some plausible but unsupported unit arguments.
2018-08-10 15:23:25 -04:00
Rick Waldron e900c559b6 Merge remote-tracking branch 'ms2ger/rtf-tonumber'
* ms2ger/rtf-tonumber:
  Intl.RelativeTimeFormat: Add tests for ToNumber() in format/ToParts().
2018-08-10 15:23:06 -04:00
Rick Waldron ec31d06622 Merge remote-tracking branch 'ms2ger/rtf-formatToParts-type'
* ms2ger/rtf-formatToParts-type:
  Intl.RelativeTimeFormat: Add tests for the type of formatToParts results.
2018-08-10 15:22:31 -04:00
Rick Waldron 883da82d29 Merge remote-tracking branch 'ms2ger/rtf-pl'
* ms2ger/rtf-pl:
  Intl.RelativeTimeFormat: Add some tests for different styles in Polish.
2018-08-10 15:21:57 -04:00
Ms2ger d15e0f58fc Intl.RelativeTimeFormat: Test some plausible but unsupported unit arguments. 2018-08-10 17:46:39 +02:00
Ms2ger fcc9fb974b Intl.RelativeTimeFormat: Add tests for ToNumber() in format/ToParts(). 2018-08-10 17:45:44 +02:00
Ms2ger 59bc1d6a2f Intl.RelativeTimeFormat: Add a basic test for the functionality of supportedLocalesOf().
This is based on test/intl402/NumberFormat/supportedLocalesOf/basic.js.
2018-08-10 17:21:08 +02:00
Ms2ger f38722c021 Intl.RelativeTimeFormat: Add tests for the type of formatToParts results. 2018-08-10 16:14:10 +02:00
Ms2ger 1d8e1c8c4f Intl.RelativeTimeFormat: Add some tests for different styles in Polish.
This is interesting because Polish has different output for the "short" and
"narrow" styles.
2018-08-10 14:29:00 +02:00
Mathias Bynens 75e8a317a2 Remove assert.throws.early
Negative tests are the better approach for early error tests.

Closes #1622.
2018-08-07 14:35:13 +02:00
Ms2ger 48d95ac3c4 Intl.RelativeTimeFormat: Add some tests for the 'narrow' style. 2018-08-04 11:10:19 -04:00
Ms2ger 1e8d69f0fa Intl.RelativeTimeFormat: Test for grouping in long numbers.
The specification was changed to remove the useGrouping option in
<https://github.com/tc39/proposal-intl-relative-time/pull/81>.

The change to remove the minimumIntegerDigits option in that PR was already
taken into account; this commit also removes the reference to the issue.

This also removes some commented-out code that was left in by accident.
2018-08-04 11:09:20 -04:00
Ms2ger fd666c5048 Intl.RelativeTimeFormat: Add some en-US-specific tests for format/formatToParts. 2018-07-27 13:09:44 -04:00
Ms2ger 604df708b3 Intl.RelativeTimeFormat: Add some tests for format, formatToParts, and resolvedOptions. 2018-07-27 13:02:00 -04:00
Ms2ger 8e15f532e1 Intl.NumberFormat: Update another test for negative zero.
The specification was updated in https://github.com/tc39/ecma402/pull/232.
2018-07-27 13:00:04 -04:00
Jordan Harband 765de9136d
`global`: update property name 2018-07-25 17:11:53 -07:00
Rick Waldron 588459fc34 Generate tests 2018-07-25 12:19:29 -04:00
Rick Waldron 64f219b666 Features: run feature detector to verify newly added feature flags 2018-07-25 12:16:49 -04:00
Rick Waldron c6d7d66dfa Merge branch 'feature-new.target' of https://github.com/IgnoredAmbience/test262 into IgnoredAmbience-feature-new.target
* 'feature-new.target' of https://github.com/IgnoredAmbience/test262:
  Add feature flags for `new.target`
2018-07-25 11:54:58 -04:00
Thomas Wood 2d4ac25fa0 Add feature flags for `new.target`
Additionally removed the `arrow-function` feature for
test/language/eval-code/direct/new.target-fn.js as it is not testing
arrow-functions, but they are mentioned in the preamble.
2018-07-24 20:31:35 +01:00
Leo Balter 6335c39ade fixes after rebase 2018-07-24 15:03:54 -04:00
Leo Balter 1452a22a02 more s/wake/notify 2018-07-24 15:03:54 -04:00
Leo Balter d8bbc281dd First renaming for wake to notify in the wait folder 2018-07-24 15:03:54 -04:00
Leo Balter 4911c6e77a Last renamings in the Atomics/wake folder 2018-07-24 15:03:54 -04:00
Leo Balter 6533378823 Atomics.wake to Atomics.notify 2018-07-24 15:03:54 -04:00
Leo Balter 003388e36e Replace esid 2018-07-24 15:03:54 -04:00
Leo Balter cdfc67cd9d Move Atomics/wake to Atomics/notify 2018-07-24 15:03:54 -04:00
Leo Balter d1ad8e8fbc
fix features tag (#1647) 2018-07-24 01:15:26 -04:00
Rick Waldron 2d27462e70 Features: Proxy, Reflect (See pull/1643) (#1646)
Follow up to https://github.com/tc39/test262/pull/1643
2018-07-20 18:42:39 -04:00
Thomas Wood d817076ddb Make Proxy/ownKeys tests ES5-parsable. (#1644)
All other Proxy tests use the syntax `attr: function() {...}` for
defining traps, ownKeys was unique in using the shorthand syntax. Change
to longhand syntax for back-compat for partial implementations.
2018-07-20 18:40:10 -04:00
Thomas Wood 4f3cbc756d Add a missing Reflect feature flag.
Proxy/deleteProperty/boolean-trap-result-boolean-true.js was missing a
feature flag for the Reflect library.
2018-07-20 15:04:21 -04:00
Ms2ger 764eb4f8b9 Intl.RelativeTimeFormat: Add tests for invalid units in format/formatToParts. 2018-07-20 15:00:30 -04:00
Ivan Vyshnevskyi 56e0ef70a5 Fix the ranges of non-HexDigits in decodeURI and decodeURIComponent tests 2018-07-20 14:59:31 -04:00
PhistucK 2afcf1d3d9
Added a legal part types test 2018-07-20 11:12:10 +03:00
Ms2ger 94b1e80ab3 Intl.RelativeTimeFormat: Add a test for the return value of supportedLocalesOf() 2018-07-13 20:18:12 -04:00
Mike Pennisi ccaa9571ea Refactor string literal test for parsers
Thsi test for the parsing of string literals was expressed using `eval`.
This made the test more complex than necessary and also prevented the
test from providing value to ECMAScript parsers.

Remove the use of `eval` and instead express the expectation with
literal source text.
2018-07-13 16:17:19 -04:00
Mike Pennisi 4f1e628107 Remove erroneous test
This test is technically valid because it does trigger a SyntaxError in
conforming runtimes. However, it was authored and documented to test
LegacyOctalEscapeSequence, but due to an apparent typo, it actually
demonstrates an unrelated parsing error.

Because 'legacy-octal-escape-sequence-stricts.js' sufficiently tests the
restriction on LegacyOctalEscapeSequence, remove this test rather than
correct it.
2018-07-13 16:17:19 -04:00
Mike Pennisi 4e1a860abd Remove redundant test
This test for string literals asserts the restriction on
LegacyOctalEscapeSequence in strict mode. It is not sufficiently
distinct from the test 'legacy-octal-escape-sequence-stricts.js' to
warrant inclusion in the test suite. Because that test includes much
more thorough documentation, it should be preferred.
2018-07-13 16:17:19 -04:00
Mike Pennisi 2facd45c76 Remove redundant and indirect tests
A number of tests for string literals assert the restriction on
LegacyOctalEscapeSequence in strict mode code and differ only in the
escape sequence under test. Although each is valid, none of the escape
sequences are sufficiently distinct from the test
'legacy-octal-escape-sequence-stricts.js' to warrant their inclusion in
the test suite. Because that test's use of literal code makes it
consumable by parsers and because that test includes much more thorough
documentation, it should be preferred.

Summary of LegacyOctalEscapeSequences under test in the removed files:

    test/language/literals/string/7.8.4-10-s.js: eval('var x = " \\10 ";');
    test/language/literals/string/7.8.4-11-s.js: eval('var x = "\\16";');
    test/language/literals/string/7.8.4-12-s.js: eval('var x = "\\17";');
    test/language/literals/string/7.8.4-13-s.js: eval('var x = "\\30";');
    test/language/literals/string/7.8.4-14-s.js: eval('var x = "\\31";');
    test/language/literals/string/7.8.4-15-s.js: eval('var x = "\\37";');
    test/language/literals/string/7.8.4-16-s.js: eval('var x = "\\400";');
    test/language/literals/string/7.8.4-17-s.js: eval('var x = "\\411";');
    test/language/literals/string/7.8.4-18-s.js: eval('var x = "\\43a";');
    test/language/literals/string/7.8.4-19-s.js: eval('var x = "\\463";');
    test/language/literals/string/7.8.4-2-s.js:  eval('var x = "\\1";');
    test/language/literals/string/7.8.4-20-s.js: eval('var x = "\\474";');
    test/language/literals/string/7.8.4-21-s.js: eval('var x = "\\77";');
    test/language/literals/string/7.8.4-22-s.js: eval('var x = "\\777";');
    test/language/literals/string/7.8.4-23-s.js: eval('var x = "\\000";');
    test/language/literals/string/7.8.4-24-s.js: eval('var x = "\\001";');
    test/language/literals/string/7.8.4-25-s.js: eval('var x = "\\106";');
    test/language/literals/string/7.8.4-26-s.js: eval('var x = "\\207";');
    test/language/literals/string/7.8.4-27-s.js: eval('var x = "\\377";');
    test/language/literals/string/7.8.4-28-s.js: eval('var x = "\\376";');
    test/language/literals/string/7.8.4-29-s.js: eval('var x = "\\3760";');
    test/language/literals/string/7.8.4-3-s.js:  eval('var x = "a\\4";');
    test/language/literals/string/7.8.4-32-s.js: eval('var x = "\\1\\1";');
    test/language/literals/string/7.8.4-33-s.js: eval('var x = "\\1\\2\\7";');
    test/language/literals/string/7.8.4-4-s.js:  eval('var x = "z\\7";');
    test/language/literals/string/7.8.4-5-s.js:  eval('var x = "\\00a";');
    test/language/literals/string/7.8.4-6-s.js:  eval('var x = "\\01z";');
    test/language/literals/string/7.8.4-7-s.js:  eval('var x = "a\\03z";');
    test/language/literals/string/7.8.4-8-s.js:  eval('var x = " \\06";');
2018-07-13 16:17:19 -04:00
Mike Pennisi 3383ba9c1b Extend metadata with `esid` 2018-07-13 16:09:19 -04:00
Mike Pennisi 6e9cf3765b Add tests for parsing behavior
Test262 already includes tests to ensure the correct runtime semantics
for these forms. Add equivalent tests designed to verify that the
equivalent parsing behavior is also observed.
2018-07-13 16:09:19 -04:00
Mike Pennisi a9cd42018f Simplify tests for runtime semantics
Verify runtime semantics through assignment to an unresolvable
reference, reducing the complexity of tests that previously relied on
the semantics of the `eval` function.
2018-07-13 16:09:18 -04:00
Mike Pennisi 0618779cb8 Normalize coverage
Promote consistency in coverage by adding new tests that correspond to
those that were authored previously.
2018-07-13 16:09:18 -04:00
Mike Pennisi 0a5b378cff Rename tests for clarity 2018-07-13 14:08:54 -04:00
Leo Balter 0fde488bb4
Update tests for CharacterClassEscapes in RegExps (#1611) 2018-07-09 12:30:33 -04:00
Mathias Bynens c7ac073e73 Update tests for RegExp Unicode property escapes (#1633)
62cbe2f1cb
2018-07-09 12:26:53 -04:00
Rick Waldron 23925f86a0
Merge pull request #1628 from Ms2ger/NumberFormat-negzero
Update the test for negative zero in NumberFormat.
2018-07-06 14:48:10 -04:00
Rick Waldron 2e007144ba
Merge pull request #1627 from Ms2ger/RelativeTimeFormat-options-proto
Add tests for objects created in the RelativeTimeFormat constructor.
2018-07-06 14:47:40 -04:00
Rick Waldron 47f9008bd3
Merge pull request #1626 from Ms2ger/RelativeTimeFormat-options
Add some more tests for the options argument to the  RelativeTimeForm…
2018-07-06 14:46:49 -04:00
Rick Waldron 7676b1b48e
Merge pull request #1625 from Ms2ger/Segmenter-@@toStringTag
Add a test for Intl.Segmenter.prototype[@@toStringTag].
2018-07-06 14:45:29 -04:00
Rick Waldron 221f212903
Merge pull request #1624 from Ms2ger/ListFormat-@@toStringTag
Add a test for Intl.ListFormat.prototype[@@toStringTag].
2018-07-06 14:44:51 -04:00
Ms2ger 65f2d5e8c2 Update the test for negative zero in NumberFormat.
The specification was updated in https://github.com/tc39/ecma402/pull/232.
2018-07-06 17:29:17 +02:00
Ms2ger df41a35c79 Add tests for objects created in the RelativeTimeFormat constructor.
The specification was changed in https://github.com/tc39/proposal-intl-relative-time/pull/79.
2018-07-06 16:46:28 +02:00
Ms2ger f8b6b929df Add some more tests for the options argument to the RelativeTimeFormat constructor. 2018-07-06 15:00:15 +02:00
Ms2ger b46778dc0f Add a test for Object.prototype.toString with Intl.ListFormat objects. 2018-07-06 12:31:16 +02:00
Ms2ger 02f20f4e11 Add a test for Object.prototype.toString with Intl.Segmenter objects. 2018-07-06 12:29:43 +02:00
Ms2ger aa7b3a5d02 Add a test for Object.prototype.toString with Intl.RelativeTimeFormat objects. 2018-07-06 12:27:48 +02:00
Ms2ger d258fcd3ba Add a test for Intl.Segmenter.prototype[@@toStringTag].
This was added to the specification in https://github.com/tc39/proposal-intl-segmenter/pull/29.
2018-07-06 12:23:39 +02:00
Ms2ger 46a0ff6e41 Add a test for Intl.ListFormat.prototype[@@toStringTag].
The specification changed in https://github.com/tc39/proposal-intl-list-format/pull/13.
2018-07-06 12:06:38 +02:00
Ms2ger 6092c08ade Update expectation for Intl.RelativeTimeFormat.prototype[@@toStringTag].
The specification changed in https://github.com/tc39/proposal-intl-relative-time/pull/77.
2018-07-06 11:45:20 +02:00
André Bargull 8bc4e38a48 Make Atomics tests more resilient against intermittent failures (#1617)
Also fixes multiple issues and bugs in various Atomics tests.

CONTRIBUTING.md and INTERPRETING.md:
- Add missing description for `CanBlockIsFalse` flag and also introduce `CanBlockIsTrue` flag which is needed for some tests (see below).

harness/atomicsHelper.js:
- Updated `$262.agent.waitUntil` to clarify it can also be called with BigInt64Array objects.
- Added `$262.agent.timeouts` constants to unify the various, inconsistently used timeouts in the Atomics tests. Each timeout constant has a brief description and a usage example to clarify when it should or should not be used. The default values were tested in SpiderMonkey (locally and CI) under various system load levels and should hopefully also be valid for other engines. 
- Added `$262.agent.tryYield` to yield control from the main thread. The default implementation simply calls `$262.agent.sleep`, but test262 hosts could theoretically provide a different implementation.
- Added `$262.agent.trySleep` to replace direct calls to `$262.agent.sleep` from the main thread. Motivation for this function: Some test262 hosts (like browsers) may be able to pause and sleep on the main thread, so they could provide their implementation for `trySleep` which performs a busy-wait or something do nothing.

harness/testAtomics.js:
- Replace `let`, `arrow-functions`, and `for-of` loops to avoid creating extremely long `features` lists in tests using this helper. Removed `Map`, `WeakMap`, `Set`, and `WeakSet` (these weren't even listed in features.yaml) for the same reason and added the missing `Symbol` entry for this file to features.yaml.
- Updated all files including "harness/testAtomics.js" to match the new feature requirements.


test/built-ins/Atomics/store/good-views.js and test/built-ins/Atomics/store/bigint/good-views.js:
- Replace `arrow-functions` and `for-of` loops with ES5 alternatives.


test/built-ins/Atomics/wait/bigint/*.js and test/built-ins/Atomics/wake/bigint/*.js
- Some tests were using `BigInt64Array.BYTES_PER_ELEMENT * 8` for the SharedArrayBuffer length, but their non-BigInt counterparts are using `Int32Array.BYTES_PER_ELEMENT * 4`. For consistency and to make it easier to compare the BigInt against the non-BigInt versions, I've changed it to `BigInt64Array.BYTES_PER_ELEMENT * 4`.
- Also aligned formatting and statement placement when they differed between the non-BigInt and the BigInt version of a test file. (I've diffed some of the non-BigInt and BigInt files against each other and different formatting was a nuisance.)

Test files using `$262.agent.monotonicNow()`:
- Moved `$262.agent.report()` calls outside of the block of code measured `$262.agent.monotonicNow()` to avoid measuring how long it takes to execute `$262.agent.report()`. 
- Without this change some tests failed intermittently in certain test configurations in SpiderMonkey. For example with the flags `--ion-eager -- ion-offthread-compile=off` which forces early Ion compilation on the main thread. The `$262.agent.report()` implementation in the SpiderMonkey test262 host embedding uses a for-loop which was forcefully Ion compiled under these settings. And because Ion compilation can take some time, the test case ran longer than `$262.agent.MAX_TIME_EPSILON` which lead to intermittent failures.

Test files using `CanBlockIsFalse` / `CanBlockIsTrue`:
- Some of these tests actually expected that the main thread can wait and [[CanBlock]] is `true` for the agent record executing the test. Therefore I've added a new `CanBlockIsTrue` flag and replaced the flags where needed.

test/built-ins/Atomics/wait/**/*.js and test/built-ins/Atomics/wake/**/*.js:
- Use an atomic counter `RUNNING` in more tests to have better control when a worker agent was actually started.
- Replace the various `$262.agent.sleep(/* Sleep X ms to ensure worker actually sleeps */)` calls with the new `$262.agent.tryYield()` function. This `X` was sometimes as low as 10 milliseconds, which is definitely too short for CI systems under heavy load (observed by intermittent CI failures for SpiderMonkey) and sometimes as high as 500 milliseconds, which is probably much longer than needed even when the system is under heavy load. 
- Removed duplicate strings in assertion messages, presumably from copy-pasting the messages between different files.
- Removed extra empty lines at the end of multiple files.

test/built-ins/Atomics/wake/bad-range.js, test/built-ins/Atomics/wake/bigint/bad-range.js, and test/built-ins/Atomics/wait/bigint/non-bigint64-typedarray-throws.js:
- Removed unnecessary `features` and `includes` from this file.

test/built-ins/Atomics/wait/waiterlist-order-of-operations-is-fifo.js and test/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js:
- The test was actually broken and didn't test what it said it does. This probably explains #1530.
- The test wants to ensure the waiterlist is implemented as a FIFO structure. This requires that the waiting agents all wait on the same index position, because the waiterlists are defined by each index. But if the agents wait on different indices, each agent is inserted into a different FIFO structure and therefore we can't observe any FIFO ordering between the agents when they're woken up.
- All this requires a bit of synchronization between the main agent and the waiting agent, I hope the added comments help to review these changes.

test/built-ins/Atomics/wait/good-views.js:
- The agent sends multiple reports to the main agent, but only the first one was read.
- This error was introduced during previous refactorings. I've changed it to back to use a while-loop as used in the first version of this file.

test/built-ins/Atomics/wait/no-spurious-wakeup-no-operation.js:
- Only the BigInt version of this test was present, copied it so we also get code coverage for the non-BigInt case.

test/built-ins/Atomics/wait/waiterlist-block-indexedposition-wake.js:
- Added extra while loops to avoid intermittent failures when the agent worker haven't started to wait.
- This should help to avoid some of the intermittent failures we saw for SpiderMonkey.

test/built-ins/Atomics/wake/wake-all-on-loc.js and test/built-ins/Atomics/wake/bigint/wake-all-on-loc.js:
- This test was also no longer after previous refactoring sessions.
- The "B" agent only waited for 10 milliseconds, which made it likely that it already timed out before the main agent was able to call `Atomics.wake`, which in turn rendered the test useless, because the test case wants to ensure that `Atomics.wake` cannot wake "B". But if "B" was already timed out, it can trivially not be woken by `Atomics.wake`.
- Added some safety measure to catch the case when "B" timed out before `Atomics.wake` was called and made it a test error if that happens.

test/built-ins/Atomics/wake/count-defaults-to-infinity-missing.js, test/built-ins/Atomics/wake/count-defaults-to-infinity-undefined.js, and test/built-ins/Atomics/wake/undefined-index-defaults-to-zero.js:
- Changed the `$262.agent.start()` calls to use a for-loop to avoid code duplication.
- (Forgot to undo the code formatting around `assert.sameValue`, still need to change it back.)
- Also more while-loops around `Atomics.wake`.
- These changes should fix #1529 and #1566.

test/built-ins/Atomics/wake/wake-all.js:
- Removed "B" worker agent.
- Without this removal the test case would be exactly equal to test/built-ins/Atomics/wake/wake-all-on-loc.js.

test/built-ins/Atomics/wake/wake-in-order-one-time.js:
- Add for-loops to avoid code duplication and make the test more readable.
- Make the `Atomics.wake` assertion messages unique by adding the current loop counter.
- Add `$262.agent.tryYield()` to give the worker agents enough time to actually start waiting.

test/built-ins/Atomics/wake/wake-in-order.js:
- Removed the outer loop `attempt < 10` because it uses `$262.agent` in a way currently not required to work. And which actually also doesn't work in SpiderMonkey's implementation of `$262.agent`.
- According to INTERPRETING.md `$262.agent.broadcast()` broadcasts its message to all agents ever started by `$262.agent.start()` and then blocks until all agents received the broadcast. It is not required that the agents started by the first `$262.agent.broadcast()` call will all be disabled/destroyed/whatever when the second `$262.agent.broadcast()` call occurs, which then means the second `$262.agent.broadcast()` call still tries to reach the agents started in the first loop iteration, but these may no longer accept broadcasts and therefore won't acknowledge they've received the broadcast. Which then means the second `$262.agent.broadcast()` call waits forever.
2018-07-03 12:34:54 -04:00
André Bargull 06c2f01901 Fix multiple test bugs and remove incomplete or no longer valid tests (#1616) 2018-06-29 18:52:53 -04:00
Leo Balter e1d1c68b0e
fix typo for Atomics.wait test, not wake (#1613) 2018-06-28 16:28:03 -04:00
Valerie Young 2fa8fc40e4 Tests for `export * as ns from 'foo'` syntax (#1498) 2018-06-28 15:46:36 -04:00
Jeff Walden 358e5e8a0c Add a test covering the behavior of SingleLineHTMLCloseComment where the LineTerminatorSequence within is either Unicode separator code point. (#1612) 2018-06-27 17:48:24 -04:00
Leo Balter 56091a0c5f
Merge pull request #1533 from rwaldron/1527
Atomics: various corrections, nit-picking and BigInt variants
2018-06-27 13:49:18 -04:00
Rick Waldron e164657a2b Atomics: fixes to bigint variants; updated assertion messages 2018-06-27 12:58:02 -04:00
Rick Waldron c29ae8effb Atomics: refactor atomicsHelper.js to extend $262.agent.* 2018-06-27 11:13:23 -04:00
Rick Waldron a1ff358a06 Atomics: fix invalid index; print error 2018-06-27 10:31:13 -04:00
Rick Waldron 64be6186be Atomics: fix Atomics.xor for BigInt64Array and BigUint64Array 2018-06-26 15:34:55 -04:00
Rick Waldron feab96e601 Atomics: ensure all SharedArrayBuffer sizes are uniform (r3) 2018-06-26 15:05:58 -04:00
Rick Waldron 9bf48e619d Atomics: fix typo "throwes" => "throws" 2018-06-26 14:51:45 -04:00
Ms2ger a6c1d05ac4 Add some additional tests for @@toStringTag on Intl.Locale. (#1604) 2018-06-26 14:43:05 -04:00
Rick Waldron 5c5dd5b286 Atomics: ensure all ArrayBuffer & SharedArrayBuffer sizes are uniform 2018-06-26 14:40:00 -04:00
Ms2ger b4efa8c938 Add tests for the shape of the Intl.RelativeTimeFormat API. (#1596)
* Add Intl.RelativeTimeFormat feature.

* Add tests for the shape of the Intl.RelativeTimeFormat API.

* fixup! Add tests for the shape of the Intl.RelativeTimeFormat API.
2018-06-26 14:02:29 -04:00
Rick Waldron a93262428f Atomics: improvements to wake-*.js tests 2018-06-26 13:39:09 -04:00
Rick Waldron 236473769a Atomics: reduce startup time allowance 2018-06-25 17:02:58 -04:00
Rick Waldron 73be21272d Atomics: wake/wake-in-order.js, capture waiterlist order for wake comparison 2018-06-25 17:02:40 -04:00
Rick Waldron fc4a6f12cb Atomics: ensure all SharedArrayBuffer sizes are uniform 2018-06-25 15:17:45 -04:00
Rick Waldron 7ec0cdba6c Atomics: more fixes for review 2018-06-25 14:54:44 -04:00
Leo Balter 9bddfaea22
Merge pull request #1572 from rwaldron/super-property-reference
SuperProperty evaluation order
2018-06-22 16:42:22 -04:00
Rick Waldron 84f448f060 Atomics: fix buffer sizes 2018-06-22 16:35:15 -04:00
Rick Waldron 5ebd632d8f Atomics: features fixes, harness features, etc. 2018-06-22 15:14:12 -04:00
Rick Waldron c5527b6d16 Atomics: Atomics.wake cleanup pass 2018-06-22 15:14:12 -04:00
Rick Waldron 695e1babd5 Atomics: remove non-sense test file 2018-06-22 15:14:11 -04:00
Rick Waldron 7f3a1c1be9 Atomics: moves getReport and waitUntil into atomicsHelper.js; broad updates to all Atomics.wait tests 2018-06-22 15:14:11 -04:00
Rick Waldron daa9af846d Atomics: wait/bigint cleanup 2018-06-22 15:14:11 -04:00
Rick Waldron ab72a55748 Atomics: spurious wakeup tests 2018-06-22 15:14:11 -04:00
Rick Waldron 22d3877a2a Atomics: further nit picking 2018-06-22 15:14:11 -04:00
Rick Waldron 7389389071 Atomics: use regular functions 2018-06-22 15:14:11 -04:00