Commit Graph

56 Commits

Author SHA1 Message Date
dnalborczyk 1b3bddbeff Fix spelling in test description 2022-07-04 09:40:40 +02:00
Csaba Osztrogonác bd1acb51a4 tools: enforce restriction on YAML includes key
Includes key should use flow notation to be able parsed easier
as suggested in https://github.com/tc39/test262/issues/1997

Added this check to the linting script and updated tests accordingly.
2022-01-05 17:27:58 -05:00
jugglinmike 219ad6ff01
Add test for [[Description]] from `Symbol.for` (#2970)
* Add test for [[Description]] from `Symbol.for`

* fixup! Add test for [[Description]] from `Symbol.for`
2021-05-13 21:16:43 -04:00
Alexey Shvayka dcccc418b3 Test Symbol wrapper object 2021-04-20 09:58:16 -04:00
Rick Waldron d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Alexey Shvayka 048b6b54ff Assert that Symbol is a constructor 2020-04-14 16:45:00 -04:00
Mike Pennisi f26c2a11bd Remove unnecessary "includes" directives
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Leo Balter ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Aleksey Shvayka 2ce56a5f64 Verify that symbols are not callable (#2180) 2019-05-27 10:34:05 -04:00
Leo Balter 3166523832 Add basic coverage for Symbol.asyncIterator 2018-09-17 10:50:33 -04:00
Rick Waldron f90a52b396
Merge pull request #1587 from peterwmwong/update-matchall
Update tests for String.prototype.matchAll
2018-06-07 23:15:50 -04:00
peterwmwong bbad9482e6 Update tests for String.prototype.matchAll
As per spec changes (https://github.com/tc39/proposal-string-matchall/pull/35), removed tests related to the removed IsRegExp call.
To prevent older implementations (not observing spec change) from passing, added a new test to verify the reduced number of observable calls to IsRegExp.

Also fix a misreference in `features` frontmatter.
2018-06-07 21:23:54 -05:00
Rick Waldron cd4371b5a7 Symbol.prototype.description: Assertion messages and additional tests 2018-06-07 22:08:52 -04:00
Joyee Cheung 70b97383a8
test getter on symbols and wrapper objects 2018-06-08 05:36:22 +08:00
Joyee Cheung 28a66ceb75
Use propertyHelper, add more tests, fix getter calls 2018-06-08 04:56:59 +08:00
Joyee Cheung cc53f64325
Add tests for Symbol.prototype.description 2018-06-07 21:39:02 +08:00
peterwmwong f1e45d9e5e
Fleshed out tests for Symbol.matchAll, String.p.matchAll, RegExp.p[@@matchAll], and %RegExpStringIteratorPrototype%
Tests were updated and assuming https://github.com/tc39/proposal-string-matchall/pull/33 will be merged.
2018-03-17 22:48:31 -05:00
Rick Waldron f574680595 built-ins/Symbol/*: make all indentation consistent (depth & character) (#1425) 2018-02-15 15:41:33 -05:00
André Bargull f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722.
2018-02-09 12:09:47 -05:00
Rick Waldron a01de4a722 js-beautify: make all indentation consistent (depth & character) (#1409) 2018-02-09 11:35:37 -05:00
André Bargull f717982c94 Remove unused includes 2018-01-25 13:59:37 -05:00
Rick Waldron 4afc330363 Fix: various lint fixes 2018-01-10 17:29:48 -05:00
Rick Waldron 92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Leo Balter 7cbbe51216 Add cross-realm feature 2017-09-22 15:29:10 -04:00
Leo Balter 7f88a6d7f9 Add other missing Symbol feature flags 2017-09-08 10:13:50 -04:00
Leo Balter 5fc0a7c6a1 Add missing Symbol.species feature flags 2017-09-08 10:13:50 -04:00
Leo Balter 2bee5df77a Add missing Symbol.iterator feature flags 2017-09-08 10:13:50 -04:00
Leo Balter c41faf1aca Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
Aleksey Shvayka 0d2b3562e9 Add basic Symbol constructor tests (#1069)
* add Symbol.length test

* add Symbol.name test

* add global.Symbol test
2017-06-22 22:11:26 -03:00
André Bargull d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
Rick Waldron fdd2fa9b1c Rename $ => $262. Fixes gh-802 (#823)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-03-01 16:34:15 -05:00
jugglinmike 71e573f7da Add tests for realm interactions (#688)
* Add tests for prototype realm inference

* Add tests for miscellaneous realm concerns

* Add tests for realm of spec-created Errors

In some cases, Error objects produced by the specification are
observable from ECMAScript code. Among these cases, some are further
differentiated in that they occur outside of any built-in function and
may be triggered through syntactic production directly. The current
realm record is commonly interpreted incorrectly under these
circumstances.

Add tests asserting that the expected realm record is used when
constructing such Error objects.

* Add tests for realm use in ArraySpeciesCreate

* Add tests for function realm retrieval

* Add tests for cross-realm behaviors of Symbols

* Add tests for GetValue and PutValue

* Add tests for realm of spec-created Arrays

In some cases, Arrays produced by CreateArrayFromList are observable
from ECMAScript code. Among these cases, two occur outside of any
built-in function and may be triggered through syntactic production
directly. The current realm record is commonly interpreted incorrectly
under these circumstances.

Add tests asserting that the expected realm record is used when
constructing arrays.

* Add test for spec-created object

* fixup! Add tests for realm of spec-created Errors

* fixup! Add tests for realm of spec-created Errors

* fixup! Add tests for prototype realm inference

* fixup! Add tests for miscellaneous realm concerns
2016-10-24 10:43:17 -07:00
jugglinmike 30d4c04182 Improve test coverage for Symbol (#645) 2016-05-30 16:55:45 -04:00
Mike Pennisi 3d68fcc063 Increase coverage for Symbol constructor
Add new tests for invocation requirements; re-organize existing files
according to the language feature under test.
2016-04-25 10:59:22 -07:00
André Bargull ca61d9b876 Add missing tests for "length" and "name" properties of built-in functions
Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
2016-01-15 18:12:05 +01:00
Mike Pennisi e39f8d88c5 Add tests for well-known Symbol: @@unscopables 2015-10-05 11:57:31 -04:00
Gorkem Yakin 117c3f386e Merge pull request #418 from bocoup/symbol-to-primitive
Add tests for well-known Symbol: @@toPrimitive
2015-09-18 09:07:51 -07:00
Gorkem Yakin df1d78d10f Merge pull request #399 from bocoup/symbol-match
Add tests for @@match
2015-09-14 14:29:28 -07:00
Mike Pennisi 62d5787b09 Add tests for @@match
Introduce tests for the well-known Symbol, `@@match`. This effects the
behavior of `String.prototype.match` and is also used by the IsRegExp
abstract operation.
2015-09-14 17:16:37 -04:00
Gorkem Yakin 32efa4a289 Merge pull request #407 from bocoup/symbol-split
Add tests for well-known Symbol: @@split
2015-09-10 16:57:00 -07:00
Mike Pennisi 8879cde471 Add tests for well-known Symbol: @@search 2015-09-08 19:15:19 -04:00
Rick Waldron a2a92d0765 Merge pull request #402 from bocoup/symbol-replace
Add tests for well-known Symbol: @@replace
2015-09-02 17:20:17 -04:00
Rick Waldron 50423896d5 Merge pull request #414 from bocoup/symbol-to-string-tag
Add tests for well-known Symbol: @@toStringTag
2015-09-02 17:15:55 -04:00
Mike Pennisi 4e88365dc6 Add tests for well-known Symbol: @@toPrimitive 2015-08-16 18:37:22 -04:00
Mike Pennisi d6bbbc9aed Add tests for well-known Symbol: @@toStringTag 2015-08-07 20:02:44 -04:00
Mike Pennisi 4693197b0c Add tests for well-known Symbol: @@split 2015-08-06 09:52:51 -04:00
Mike Pennisi bb0cbeb655 Add tests for well-known Symbol: @@replace 2015-08-05 09:39:00 -04:00
Mike Pennisi 652e35bd32 Add tests for well-known Symbol, @@hasInstance
Assert the behavior of the built-in method on the FunctionPrototype and
the usage of the Symbol by the `instanceof` operator.
2015-07-28 00:08:55 -04:00
Brian Terlson 791b25ebbc Merge pull request #377 from bocoup/symbol-iterator
Add tests for @@iterator
2015-07-27 16:45:51 -07:00