Commit Graph

61 Commits

Author SHA1 Message Date
ExE Boss 9c754bc3ce Add tests for cross‑realm and subclass calls of legacy static accessors 2020-09-10 16:07:17 -04:00
ExE Boss 391f799152 Add tests for cross‑realm and subclass `RegExp.prototype.compile` calls 2020-09-10 16:07:17 -04:00
ExE Boss d06c21c03a Add tests for property descriptors of legacy RegExp accessors 2020-09-10 16:07:17 -04:00
Alexey Shvayka f95e9d3f85 Add Object.is test 2020-08-12 14:06:34 -04:00
QuXing9 19653bdfc8
Additional tests for escape and unescape methods (#2695)
Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2020-07-09 10:16:18 -07:00
QuXing9 91a9abff4e
Add three testcases for test262 suite. (#2692)
* Add tests for escape function when parameter is not a string.

Fixes #2687
Fixes #2637

* Add test for indirect eval calls  when script is a for statement.

When for statement doesn't have a body, it should throw a SyntaxError.

Fixes #2661

* Add tests for Function Constructor when body contains usestrict.

Fixes #2688
Fixes #2638
2020-07-09 09:57:55 -07:00
Leo Balter 5908ed29ac
Fix tests for HTML comments in function body evaluation (#2109)
Ref tc39/ecma262#1479
2020-06-19 15:06:16 -07:00
Alexey Shvayka 5f1e61e427 Fix [[IsHTMLDDA]] Symbol.replaceAll test 2020-05-20 13:38:32 -04:00
Alexey Shvayka 35a31d157b Add String.prototype.split test 2020-05-13 10:52:57 -04:00
Alexey Shvayka fd74f97067 Add String.prototype.search test 2020-05-13 10:52:57 -04:00
Alexey Shvayka 825dd31d27 Add String.prototype.replaceAll test 2020-05-13 10:52:57 -04:00
Alexey Shvayka 6cce955d6d Add String.prototype.replace test 2020-05-13 10:52:57 -04:00
Alexey Shvayka a66fe41259 Add String.prototype.matchAll test 2020-05-13 10:52:57 -04:00
Alexey Shvayka 3abf511728 Add String.prototype.match test 2020-05-13 10:52:57 -04:00
Alexey Shvayka 5498ab79a1 Add %TypedArray%.from test 2020-05-13 10:52:57 -04:00
Alexey Shvayka 2dac38815f Add Array.from test 2020-05-13 10:52:57 -04:00
Alexey Shvayka c2f0a3ced9 Bring back accidentally removed __proto__ test 2020-04-23 10:44:37 -04:00
Gus Caplan 30542f3e4c Update groups-object.js 2020-04-18 17:04:51 -04:00
Gus Caplan 97bd6fd12d Update indices-groups-object.js 2020-04-18 17:04:51 -04:00
Gus Caplan a799a4ac23 Sort out __proto__ occurances outside of annexB 2020-04-18 17:04:51 -04:00
Alexey Shvayka 27a41b6321
Improve malformed RegExp named groups coverage (#2568) 2020-04-10 15:07:50 -07:00
Leo Balter 14c3a6e839
Add new tests to observe required leading line terminator (#2102)
* Add new tests to observe required leading line terminator

Ref #2095
2019-03-14 14:51:02 -04:00
Leo Balter 1ce8166433 Use a line terminator for HTMLCloseComments 2019-03-14 13:33:48 -04:00
Ross Kirsling d0f57bff72 Ensure test file YAML blocks don't have a trailing space. (#2018) 2019-01-07 11:40:39 -02:00
Peter Marshall b3efcd2f3f Consistently use spaces in features lists (#2000) 2018-12-17 17:00:04 -02:00
Rick Waldron f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
Rick Waldron 6f59ddc457 Fix annex B tests 2018-01-25 14:37:36 -05:00
Valerie R Young 524f545f3d Add reference tests for trimLeft and trimRight 2018-01-25 14:10:40 -05:00
Valerie R Young 2905e6a293 fixup: Add initial tests for trim(Start/End/Left/Right) 2018-01-25 14:10:14 -05:00
Valerie R Young 5931e313fc Add initial tests for trim(Start/End/Left/Right) 2018-01-25 14:10:14 -05:00
Rick Waldron 92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
André Bargull 9b54779018 Add tests for recompilation in @@split 2017-12-19 15:42:56 -05:00
André Bargull eecf0fd06b Add tests for html-comments in Function constructor call 2017-12-19 15:42:56 -05:00
André Bargull 2d6a356699 Move incomplete_hex_unicode_escape.js to annexB
Fixes #1313
2017-11-01 08:23:43 -07:00
Leo Balter f8f5a7a1e7
Add missing generators flags 2017-10-26 19:04:57 -04:00
André Bargull 804e008310 Split Annex-B parts of non-unicode-malformed.js into annexB folder 2017-09-18 14:39:32 -04:00
Leo Balter 358a295db0 Use verifyProperty on test/annexB/ files 2017-09-08 10:13:36 -04:00
Rick Waldron d0ba3251d2 Restore migration to assert.sameValue
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-26 14:36:51 -04:00
Daniel Ehrenberg a2f44c7151 Additional test for range case pointed out by @anba 2017-06-23 12:16:28 -04:00
Daniel Ehrenberg 0e6acc0842 Change test based on new spec version 2017-06-23 12:16:28 -04:00
Daniel Ehrenberg b82be14e26 Add tests for invalid \c in character class
This patch implements tests for https://github.com/tc39/ecma262/pull/864
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg ce217fffad Improve invalid \c escape tests 2017-06-23 12:16:28 -04:00
Leo Balter ca314476a9 Update RegExp tests for named-capturing and dotAll (#1009)
* Split order tests for RegExp#flags

* small fixes for RegExp named groups

* Remove invalid syntax

* The test mustn't include the global flag
2017-05-01 12:08:31 -04:00
Leo Balter fa9aae7750
Use assert api instead of $ERROR 2017-04-24 15:31:52 -04:00
André Bargull d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
Doug Ilijev 5da6f981e9 Add escape-above-astral.js to cover escaping code units as encoded from extended unicode escape. (#942) 2017-03-28 20:09:16 -04:00
Leonardo Balter 340543bc11
Rename top level 'name' and 'length' bindings
Fix 850
2017-03-14 12:43:24 -04:00
Zirak ed2bcdc0a9 Add missing test cases for set __proto__ (#898)
Fixes #887
2017-03-13 11:03:28 -04:00
André Bargull 204266794c Fix various test issues (#840)
test/annexB/built-ins/Date/prototype/setYear/time-clip.js
test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js
test/built-ins/Date/prototype/setMonth/new-value-time-clip.js
- Don't try to test time-clip at the end points, because this is near
impossible to get right (needs to consider time zone offset, dst, local
mean time because of Africa/Monrovia, etc.).

test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js
test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js
- Wasn't update to expect RangeError

test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js
- Change ClassDeclaration -> ClassExpression to get completion value

test/built-ins/Function/prototype/toString/AsyncFunction.js
- Add missing \n in expected string
- Also fixed in gh-847

test/built-ins/global/global-object.js
- Add 'var' to make test pass in strict-mode

test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js
- This is allowed in sloppy mode when Annex B is implemented

test/language/expressions/async-generators/expression-yield-as-statement.js
- Fix calls to then()

test/language/module-code/namespace/internals/own-property-keys-binding-types.js
test/language/module-code/namespace/internals/own-property-keys-sort.js
- Tests weren't updated after removal of @@iterator from module
namespace objects

test/language/module-code/namespace/internals/set-prototype-of-null.js
- Fix syntax error

test/language/statements/async-function/early-errors-no-async-generator.js
- No longer valid now that async iteration proposal is at stage 3
2017-02-07 11:10:56 -05:00
jugglinmike 01fe0d331b Add tests for Annex B `Object.prototype` methods (#626) 2016-06-08 12:41:26 -04:00