Commit Graph

180 Commits

Author SHA1 Message Date
Rick Waldron c8aabb3664 Import tests from Google V8 (Rest Parameters)
These tests are derived from the following files within the Google V8 project:

    test/mjsunit/harmony/rest-params.js
2015-03-31 16:56:24 -04:00
Rick Waldron 40c07540e7 Fix copyright line 2015-03-30 12:48:02 -04:00
Brian Terlson ceeefa3196 Merge pull request #184 from bocoup/iteration-semantics-2
Import tests from Google V8 (iteration semantics)
2015-03-19 13:39:20 -07:00
Rick Waldron 3ac4b240bb computed-property-names: follow up corrections. Fixes gh-198 2015-03-19 14:54:24 -04:00
Mike Pennisi bd44d30a00 Import tests from Google V8 (iteration semantics)
These tests are derived from the following files within the Google V8
project:

test/mjsunit/es6/iteration-semantics.js
2015-03-18 20:06:12 -04:00
Rick Waldron fc3e2cab05 computed-property-names: corrections. Fixes gh-198 2015-03-18 19:13:11 -04:00
Brian Terlson 538a2a8e83 Merge pull request #183 from bocoup/harmony-block-scope
Import tests from Google V8 (Block Scoping)
2015-03-18 16:09:05 -07:00
Rick Waldron 373b356d33 computed-property-names: corrections. Fixes gh-198 2015-03-18 18:50:05 -04:00
Brian Terlson d24fd10549 Merge pull request #189 from bocoup/harmony-computed-property-names
Import tests from Google V8 (Computed Property Names)
2015-03-06 16:44:57 -08:00
Brian Terlson f6d8dd0f9e Merge pull request #175 from bocoup/harmony-classes
Import tests from Google V8 (Class syntax & semantics)
2015-03-06 13:53:11 -08:00
Brian Terlson 42dc0f6b35 Merge pull request #165 from bocoup/iterators
Add Array Iteration Tests
2015-03-06 13:31:56 -08:00
Mike Pennisi 6565c89de2 Import tests from Google V8
These tests are derived from the following files within the Google V8
project:

    test/mjsunit/es6/array-iterator.js
2015-03-06 14:13:36 -05:00
Rick Waldron 5d11ec4b24 Import tests from Google V8 (Class syntax & semantics)
These tests are derived from the following files within the Google V8 project:

        test/mjsunit/harmony/class-computed-property-names-super.js
        test/mjsunit/harmony/class-property-name-eval-arguments.js
        test/mjsunit/harmony/classes-experimental.js
        test/mjsunit/harmony/classes-lazy-parsing.js
        test/mjsunit/harmony/classes.js
2015-03-06 10:44:37 -05:00
Rick Waldron e7a6c05d36 (Computed Property Names) Re-organize, add assertion messages. 2015-03-05 16:46:11 -05:00
Rick Waldron 4c49047f20 Import tests from Google V8 (Object Literal Concise Method and Property Initialization)
These tests are derived from the following files within the Google V8 project:

        test/mjsunit/harmony/method-name-eval-arguments.js
        test/mjsunit/harmony/object-literals-method.js
        test/mjsunit/harmony/object-literals-property-shorthand.js
        test/mjsunit/harmony/object-literals-super.js
2015-03-05 15:22:13 -05:00
Rick Waldron bd682d8e37 Import tests from Google V8 (Computed Property Names)
These tests are derived from the following files within the Google V8
project:

        test/mjsunit/harmony/computed-property-names-classes.js
        test/mjsunit/harmony/computed-property-names-object-literals-methods.js
        test/mjsunit/harmony/computed-property-names-super.js
        test/mjsunit/harmony/computed-property-names.js
2015-03-05 12:04:46 -05:00
Rick Waldron 3f9587a8ee Import tests from Google V8 (Block Scoping)
These tests are derived from the following files within the Google V8 project:

	test/mjsunit/harmony/block-conflicts.js
	test/mjsunit/harmony/block-for.js
	test/mjsunit/harmony/block-leave.js
	test/mjsunit/harmony/block-let-declaration.js
	test/mjsunit/harmony/block-let-semantics.js
	test/mjsunit/harmony/block-scoping.js
2015-03-04 11:10:46 -05:00
Brian Terlson 1b04b7db08 Merge pull request #180 from smikes/178-generator-super
add () to super call
2015-02-26 16:35:29 -08:00
smikes 3e298dbeed format features correctly 2015-02-25 20:43:23 -07:00
smikes ca47fc46de add () to super call 2015-02-25 20:41:15 -07:00
Brian Terlson 4c510bf078 Merge pull request #167 from smikes/generator-tests
initial set of generator tests
2015-02-19 17:48:11 -08:00
smikes 04f468541e batch of generator tests
fix info, desc

remove dubious test

correct no-name test, add implicit-name test
2015-02-19 18:35:59 -07:00
Rick Waldron 341e31f7d3 Import tests from Google V8 (Arrow Functions)
These tests are derived from the following files within the Google V8
project:

	test/mjsunit/harmony/arrow-functions.js
2015-02-18 12:58:34 -05:00
Rick Waldron cda3ec74a1 ES6-specific tests: es5id=>es6id, new es6id entries. Closes gh-144 2015-02-12 16:36:13 -05:00
Brian Terlson d075338699 Merge pull request #140 from anba/issue-35/expressions
Fix strict mode errors in language/expressions
2014-12-13 11:36:24 -08:00
André Bargull 1a4793926f Fix strict mode errors in language/expressions
- Add missing noStrict flags when tests explicitly require non-strict semantics (e.g. unqualified delete, with statement)
- Change `throw new Exception(...)` to `$ERROR(...)` in call/*
- Replace dynamic strict mode check with noStrict flag in call/11.2.3-3_8
- Align assignment/11.13.1_A3.1 with 11.13.1_A3.2 to avoid creating implicit global variable
- Split test into multiple files when undeclared variable are under test
  - addition/S11.6.1_A2.4_T3
  - division/11.5.2_A2.4_T3
  - does-not-equals/11.9.2_A2.4_T3
  - equals/S11.9.1_A2.4_T3
  - greater-than/S11.8.2_A2.4_T3
  - greater-than-or-equal/S11.8.4_A2.4_T3
  - in/S11.8.7_A2.4_T3
  - instanceof/11.8.6_A2.4_T3
  - left-shift/S11.7.1_A2.4_T3
  - less-than/S11.8.1_A2.4_T3
  - less-than-or-equal/S11.8.3_A2.4_T3
  - modulus/S11.5.3_A2.4_T3
  - multiplication/11.5.1_A2.4_T3
  - right-shift/11.7.2_A2.4_T3
  - strict-does-not-equals/11.9.5_A2.4_T3
  - strict-equals/11.9.4_A2.4_T3
  - subtraction/11.6.2_A2.4_T3
  - unsigned-right-shift/11.7.3_A2.4_T3
- Add declaration when implicit global variable creation not part of the test
  - assignment/11.13.1_A4_T1
  - compound-assignment/S11.13.2_A3.1_T*
  - compound-assignment/S11.13.2_A3.2_T*
  - grouping/11.1.6_A3_T5
  - instanceof/S15.3.5.3_*
- Split test into multiple files when unqualified delete is used
  - delete/S11.4.1_A2.2_T1.js
  - delete/11.4.1_A3.2
  - grouping/S11.1.6_A2
  - grouping/S11.1.6_A3_T6
2014-12-11 19:07:04 +01:00
André Bargull 2903a4c885 Revert 12.14-1 and 12.14-2 (Fixes #120)
Assume tests run with Annex B semantics enabled. (Fixes #120)
2014-12-11 18:45:54 +01:00
André Bargull 0dbafac5a6 Add 'var' declarations for strict mode
This change adds 'var' declarations for global variables to allow the tests to run in strict mode (see issue #35).
Extra care was taken to ensure the changes do not alter the test behavior, for example when implicit creation of global variables are part of the test.
Note: The change does not fix all strict mode errors due to missing 'var' declarations.
2014-12-10 16:37:05 -08:00
André Bargull 0ceb428ec9 Add test coverage for identifier resolution in dynamic scopes
Identifier resolution in dynamic scope context is missing test coverage, resolves https://bugs.ecmascript.org/show_bug.cgi?id=1751 .
2014-12-10 16:05:32 -08:00
Brian Terlson 2a74f0ec1b Reorganize ./test 2014-12-07 15:33:09 -08:00