Official ECMAScript Conformance Test Suite
Go to file
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
docs Rename `String.prototype.contains` to `String.prototype.includes` 2014-12-10 13:27:42 -08:00
harness use $.detachArrayBuffer API instead of throwing (#795) 2016-11-22 17:13:23 -05:00
src [generation] Parse and render new error format 2016-10-19 15:24:19 -04:00
test Fix various test issues (#840) 2017-02-07 11:10:56 -05:00
tools Update test harness to support new negative format 2016-10-19 15:24:21 -04:00
website Remove links to hg.ecmascript.org (non-license content) 2015-07-17 17:43:27 +02:00
.gitattributes Import tests from Google V8 (templates) 2015-04-02 12:13:51 -04:00
.gitignore async,promises: initial tests of Promises 2014-07-18 05:37:08 +01:00
.hgignore
.jshintrc Added new tests for chapters 6 and 9 of ECMAScript Internationalization API Specification. 2012-08-26 20:49:25 -07:00
CONTRIBUTING.md Remove "NotEarlyError" object 2016-10-19 15:24:22 -04:00
Draft TR ECMA-104 2nd edition.doc Add files via upload 2016-09-30 13:03:42 +02:00
INTERPRETING.md Correct file reference in "interpreting" document (#799) 2016-11-22 11:46:51 -05:00
LICENSE New tests and test fixes for ECMAScript Internationalization API. 2013-03-24 23:48:59 -07:00
README.md Add link to web-based runner (#801) 2016-11-29 14:35:01 -05:00
excludelist.xml Fix packager.py for updated locations 2014-12-09 14:52:12 -08:00
make.py Add initial set of generated test sources 2016-03-16 15:29:30 -04:00

README.md

Test262 is the official ECMAScript (ECMA-262) conformance suite.

Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals. It is maintained by Tom Care (@tcare) with significant contributions from many in the ECMAScript community.

Contributing to Test262

See CONTRIBUTING.md

  1. Sign the Test262 CLA.
  2. Send a pull request. Please make sure you have one commit per pull request. If you have multiple commits, squash them before sending the pull request.

Running Test262

See INTERPRETING.md

There are a number of volunteer-maintained projects that may be used to execute Test262 in various ECMAScript hosts: