Commit Graph

3998 Commits

Author SHA1 Message Date
Aleksey Shvayka 385848d449 Rename & merge "this not callable" tests 2019-05-15 01:36:22 +03:00
Aleksey Shvayka 9c93e05d90 Unify "length" tests 2019-05-15 00:01:29 +03:00
Aleksey Shvayka 6943b289fc Add cross-realm "argArray not object" test 2019-05-14 23:07:27 +03:00
Aleksey Shvayka 171b3ef083 Rename & merge "argArray not object" tests 2019-05-14 23:07:23 +03:00
Aleksey Shvayka 8c1819484e Improve Proxy/apply coverage (#2156) 2019-05-10 15:57:40 -04:00
Caio Lima 2682ab57cf Adding private brand check cases for private methods, getters and setters. (#2152) 2019-05-08 16:26:13 -04:00
Leo Balter 6e760b43d5
Merge pull request #2145 from caiolima/private-env-class-heritage
Adding case to verify if PrivateEnvironment is properly set when evaluating 'ClassHeritage'
2019-05-08 14:46:07 -04:00
Caio Lima 7ab73f5fb7 Fixing typo on 2019-05-08 15:21:26 -03:00
Caio Lima 4cd26da388 Adding more cases that can be present on ClassHeritage grammar rule 2019-05-08 15:12:24 -03:00
Caio Lima 4c62f6dd73 Adding case to verify if PrivateEnvironment is properly set when evaluating 'ClassHeritage' 2019-05-08 15:12:24 -03:00
Ms2ger 0e8d1a29be Add tests for Intl.DateTimeFormat formatRange and formatRangeToParts (#2139) 2019-05-08 11:40:33 -04:00
Aleksey Shvayka 4d33170d0e Add tests for Proxy semantics change (#2143)
* Add not extensible target test for `deleteProperty`

* Add non-writable descriptor test for `defineProperty`

* Add non-writable descriptor test for `getOwnPropertyDescriptor`
2019-05-03 10:21:48 -04:00
Frank Yung-Fong Tang d47749e84d Use verifyProperty and remove dup check (#2146) 2019-05-02 19:49:40 -04:00
Leo Balter cc83d1d3de Use .. for git diffs in the npm scripts
This will allow the script to fetch only changed files from the working branch/PR
2019-05-01 15:25:29 -04:00
Leo Balter 7a21a1bd5e fixup! set npm scripts to run tests 2019-05-01 15:25:29 -04:00
Leo Balter 1273d6e5c8 set npm scripts to run tests 2019-05-01 15:25:29 -04:00
Frank Yung-Fong Tang 4b25f6fae8 Add initial tests for Intl.DateTimeFormat formatRange and formatRangeToParts (#2134) 2019-05-01 15:20:29 -04:00
Ms2ger 94c498a792 Test the interaction of timeStyle and u-hc locale tags. (#2144) 2019-05-01 13:13:50 -04:00
Ms2ger 532206a9bd Add some more BigInt.prototype.toLocaleString tests. (#2136) 2019-05-01 13:05:25 -04:00
Leo Balter 3d4909b0fd
Use .. for git diffs in the CI routines (#2140)
the double dot gets only commits not in the left side of the double dot.

The right side assumes HEAD.

This will allow us to fetch the correct list of new or modified files in the current branch.
2019-04-25 17:56:55 -04:00
Leo Balter 1e4c5ae01e
Merge pull request #2131 from leobalter/resolve-lookup
Add tests for Promise.all|race resolve lookup
2019-04-25 13:31:39 -04:00
Leo Balter 3b2ad0b5d0 Fix tests for new resolve lookup in Promise.allSettled 2019-04-24 17:28:01 -04:00
Leo Balter 24d1b6d59c Fix tests for new resolve lookup 2019-04-24 17:28:01 -04:00
Leo Balter b646cf6365 Add tests for Promise.all|race resolve lookup
Ref tc39/ecma262#1506
2019-04-24 17:28:01 -04:00
Leo Balter 705d78299c
Update dependencies in package.json (#2138) 2019-04-24 17:26:45 -04:00
Leo Balter f4e60b8f20
Add a case for non extensible targets of proxies GetPrototypeOf (#2122) 2019-04-24 11:49:43 -04:00
Rick Waldron 5bd2e28406 4.0.0 (#2132)
The latest changes to INTERPRETING.md require a incrementing the major version.
2019-04-24 11:48:29 -04:00
Rick Waldron cfe59eec64 INTERPRETING.md/CONTRIBUTING.md: revised rules for _FIXTURE.js files (#2135) 2019-04-24 10:59:54 -04:00
Rick Waldron ba013cf7fc INTERPRETING.md: explicitly disallow use of Test262-Defined Bindings and Host-Defined Functions in _FIXTURE.js files (#2130) 2019-04-17 15:44:42 -04:00
Rick Waldron 631b36a734 Refactor module _FIXTURE.js to have no harness dependencies (#2129)
rwaldron in ~/clonez/test262 on master
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)

test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
ChakraCore (jsvu)

test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)

test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)

test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
Moddable (jsvu)

test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

rwaldron in ~/clonez/test262 on refactor-fixtures-to-eliminate-harness-file-dependencies
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)

test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
ChakraCore (jsvu)

test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)

test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)

test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
Moddable (jsvu)

test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed
2019-04-17 15:44:02 -04:00
Leo Balter 7e7b9e103d
Port tests from Promise.all to Promise.allSettled (#2124) 2019-04-17 14:17:54 -04:00
Jason Orendorff 1988988a10 Add a couple more tests for ASI with fields. (#2128) 2019-04-17 10:55:01 -04:00
Ms2ger 8e5ab69e8c Initial tests for BigInt.prototype.toLocaleString(). (#2126)
Many of these tests are heavily based on the tests for
Number.prototype.toLocaleString().
2019-04-10 11:11:21 -04:00
Ms2ger c03e14263e Add tests for the datetime-style proposal. (#2125) 2019-04-10 11:09:40 -04:00
Frank Yung-Fong Tang 611919174f correct a test case for updated list patterns (#2123)
I somehow missed the last line last time I proposed https://github.com/tc39/test262/pull/2111
2019-04-03 16:02:22 -04:00
ta7sudan 4bacf25f0d Add test that a Proxy instance with getPrototypeOf trap use instanceof operator on a function (#2107) 2019-04-03 14:14:51 -04:00
Leo Balter 324f2916d3
Merge pull request #2119 from FrankYFTang/patch-2
Update test to allow 'narrow' style for all types
2019-04-02 14:10:24 -04:00
Frank Yung-Fong Tang 183f6d9f95 Update list pattern to sync with CLDR 35 (#2111)
CLDR 35 change "and" to "&" for the list form pattern "short"
see https://unicode.org/cldr/trac/ticket/11520
Also compare
https://www.unicode.org/repos/cldr/tags/release-34/common/main/en.xml
against
https://www.unicode.org/repos/cldr/tags/release-35-beta/common/main/en.xml

Notice the addition of
<listPattern type="standard-short">
<listPatternPart type="start">{0}, {1}</listPatternPart>
<listPatternPart type="middle">{0}, {1}</listPatternPart>
<listPatternPart type="end">{0}, & {1}</listPatternPart>
<listPatternPart type="2">{0} & {1}</listPatternPart>
</listPattern>
2019-04-02 14:09:36 -04:00
Leo Balter 93f2bae981
Merge pull request #2118 from jugglinmike/refactor-for-parsers-with
Refactor `with` statement tests for parsers
2019-04-02 14:08:18 -04:00
Leo Balter cd1df5fae2
Merge pull request #2117 from jugglinmike/refactor-for-parsers-misc-stmts
Refactor misc. statement tests for parsers
2019-04-02 14:07:35 -04:00
Leo Balter 7ae3fe3b21
Merge pull request #2116 from jugglinmike/refactor-for-parsers-literals
Refactor literal tests for parsers
2019-04-02 14:03:25 -04:00
Richard Gibson d62318319f Add tests for string representations of Date objects with negative years (#2114)
* Add tests for string representations of Date objects with negative years

Ref https://github.com/tc39/ecma262/issues/1035
Ref https://github.com/tc39/ecma262/issues/1407
2019-04-02 14:02:35 -04:00
Leo Balter 6d6d52b78b
Merge pull request #2115 from gibson042/2019-03-update-CONTRIBUTING
Improve content and style of contribution guidelines
2019-04-02 13:58:25 -04:00
Frank Yung-Fong Tang 03c605fe3c
obsoleted test 2019-04-02 10:00:52 -07:00
Frank Yung-Fong Tang b5d5241dbe
Update test to allow 'narrow' style for all types
Based on the changes in https://github.com/tc39/proposal-intl-list-format/pull/43
We now allow  'narrow' style for all types
2019-04-02 09:57:45 -07:00
Mike Pennisi 9b396d0b0b Refactor `with` statement tests for parsers
The tests for the parsing of the `with` statement 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. Rename the files to make each test's purpose more clear.
2019-03-31 22:22:04 -04:00
Mike Pennisi 255338141b Remove redundant tests
These tests are syntactically equivalent to
`test/language/statements/with/12.10.1-7-s.js` and may therefore be
removed without degrading coverage.

While `test/language/statements/with/12.10.1-9-s.js` differs slightly in
the pattern used to enable strict mode, the relevant behavior of the
"use strict" directive prologue is expressly tested via
`test/language/directive-prologue/func-expr-inside-func-decl-parse.js`.
2019-03-31 22:21:41 -04:00
Mike Pennisi 159bcc7bad Improve test precision
Previously, some tests verified two independent concerns simultaneously:
syntactic validity and runtime completion value. The former is relevant
for ECMAScript runtimes and parsers alike, but the latter is only
observable by runtimes.

Express expectations regarding syntactic validity using literal program
code so they can be used by parsers. Maintain the original tests which
rely on eval in order to preserve coverage for statement completion
values.
2019-03-31 21:44:49 -04:00
Mike Pennisi aa4c533d28 Refactor misc. statement tests for parsers
The tests for the parsing of various statement 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. Rename the files to make each test's purpose more clear.
2019-03-31 21:44:49 -04:00
Mike Pennisi c9249a8f92 Remove indirect tests
These tests are ostensibly designed to validate parsing of Regular
Expression literals--specifically those which use Unicode escape
sequences to declare flags. However, because the syntax is expressed in
terms of a string literal and then evaluated dynamically, the escape
sequences in use have no bearing on the program code which is ultimately
parsed. These tests therefore do not extend coverage in any meaningful
way and may be removed.
2019-03-31 20:26:12 -04:00