Commit Graph

1062 Commits

Author SHA1 Message Date
Mike Pennisi a321e87a2d Add tests for `for..of` iteration over built-ins 2015-06-18 15:53:19 -04:00
Brian Terlson 0164622232 Merge pull request #325 from bocoup/fix-browser
Update browser runner to inject `assert.js`
2015-06-18 15:39:37 -04:00
Mike Pennisi 73aa06275a Update browser runner to inject `assert.js`
Since the Python runner was updated to include `assert.js` in all tests
unconditionally, a number of tests have been written that implicitly
rely on its presence. The browser runner does not currently provide this
file's contents to these tests, so they fail unconditionally.

Update the browser runner to inject that file's contents into every test
context.

Note: the existing approach to file retrieval (namely loading via
synchronous XHR requests) is inefficient and deprecated in some
browsers. It is honored here for the sake of consistency and to minimize
the changeset necessary to fix the browser runner.
2015-06-18 13:53:09 -04:00
Yanli Xu 07b21a5e44 add tests for Object.assign 2015-06-18 15:23:15 +08:00
Brian Terlson 42d16da901 Merge pull request #286 from bocoup/obj-method-def
Add tests for MethodDefinition forms new to ES6
2015-06-17 19:56:29 -04:00
Brian Terlson e1500bff66 Merge pull request #322 from bocoup/remove-print
Remove $PRINT helper function
2015-06-17 19:54:58 -04:00
Brian Terlson a54793bf4b Merge pull request #324 from bocoup/fix-meta-data
Fix typo in test meta-data
2015-06-17 16:21:01 -04:00
Mike Pennisi 48dbddebdb Fix typo in test meta-data
The `Negative` tag accepts a string value (not a list)
2015-06-17 15:44:54 -04:00
Mike Pennisi 6863328f88 fixup! Introduce additional tests for ES6 templates
Include tests using arrow functions
2015-06-16 16:08:03 -04:00
Mike Pennisi e42f977122 fixup! Introduce additional tests for ES6 templates
Ensure test files assert the described behavior. Extend coverage to
strict and non-strict mode explicitly.
2015-06-16 15:10:09 -04:00
Mike Pennisi fe11a1ea1a Remove $PRINT helper function
The `$PRINT` helper function has no effect on test behavior. The
following tests use it to report assertion outcomes (and as a result
will fail silently):

- test/language/function-code/S10.2.1_A4_T2.js
- test/language/function-code/S10.2.1_A5.1_T1.js
- test/language/function-code/S10.2.1_A5.1_T2.js
- test/language/function-code/S10.2.1_A5.2_T1.js

Remove the function definition and all references within tests. Update
tests that use it as an error reporting mechanism to instead use an
appropriate `assert` helper function.
2015-06-16 13:43:23 -04:00
Brian Terlson f668e94b6f Merge pull request #318 from pvginkel/fill-is-es6
The Array.prototype.fill function is an ES6 function.
2015-06-16 13:31:23 -04:00
Brian Terlson 54de5fb509 Merge pull request #319 from pvginkel/missing-features
The Array.prototype.find function is an ES6 function.
2015-06-16 13:30:12 -04:00
Brian Terlson cd35655beb Merge pull request #317 from bocoup/es6-numeric-literals
ES6 numeric literals
2015-06-16 13:28:35 -04:00
Brian Terlson 15ad3c9cad Merge pull request #321 from bocoup/swallowed-assertions
Fix tautological pattern in tests
2015-06-16 13:19:32 -04:00
Mike Pennisi 57f3466cf7 Fix tautological pattern in tests
In neglecting to assert the type of error thrown (or that any error was
thrown at all), these tests cannot fail. Refactor the tests to use the
`assert.throws` helper method, which takes these details into
consideration.
2015-06-16 12:55:56 -04:00
Brian Terlson e4aac334b8 Merge pull request #282 from bocoup/Proxy
Add tests for Proxy
2015-06-16 11:18:57 -04:00
Leonardo Balter 2c4077c17a Proxy: construct 2015-06-15 22:37:59 -04:00
Leonardo Balter 450b830026 Proxy: apply 2015-06-15 22:37:59 -04:00
Leonardo Balter 3f214e715f Proxy: ownKeys 2015-06-15 22:37:58 -04:00
Leonardo Balter 28f9d8dbd2 Proxy: enumerate 2015-06-15 22:37:58 -04:00
Leonardo Balter d9edb3593a Proxy: deleteProperty 2015-06-15 22:37:58 -04:00
Leonardo Balter 99ca320b01 Proxy: set 2015-06-15 22:37:57 -04:00
Leonardo Balter 21a1fbe68e Proxy: get 2015-06-15 22:37:57 -04:00
Leonardo Balter 54e82687d7 Proxy: has 2015-06-15 22:37:57 -04:00
Leonardo Balter b2d4bcfd0e Proxy: defineProperty 2015-06-15 22:37:57 -04:00
Leonardo Balter a2f0f2888d Proxy: getOwnPropertyDescriptor 2015-06-15 22:37:57 -04:00
Leonardo Balter 79a256cd5a Proxy: preventExtensions 2015-06-15 22:37:56 -04:00
Leonardo Balter 15a9a15815 Proxy: isExtensible 2015-06-15 22:37:56 -04:00
Leonardo Balter 54f3f23f72 Proxy: setPrototypeOf 2015-06-15 22:37:56 -04:00
Leonardo Balter d012f5c680 Proxy: getPrototypeOf 2015-06-15 22:37:56 -04:00
Leonardo Balter c3e71dcb0b Proxy.revocable 2015-06-15 22:37:56 -04:00
Leonardo Balter 9bbe7c6272 Proxy: Core 2015-06-15 22:37:55 -04:00
Leonardo Balter b898493f53 WeakSet 2015-06-15 22:37:24 -04:00
Pieter van Ginkel e108edfd92 The Array.prototype.find function is an ES6 function.
A number of Array.prototype.find tests were missing a feature specification.
2015-06-14 06:22:33 +02:00
Pieter van Ginkel 1428368f81 The Array.prototype.fill function is an ES6 function.
One of the Array.prototype.fill tests specifies an es5id. Changed to an es6id.
2015-06-13 17:52:12 +02:00
Mike Pennisi 3fb19f53dc Add tests for OctalIntegerLiterals 2015-06-12 16:06:52 -04:00
Mike Pennisi c273e30235 Add tests for BinaryIntegerLiterals 2015-06-12 16:06:52 -04:00
Mike Pennisi ef7ddf9f7e Improve frontmatter usage
Define explanatory text using the `info` tag and include single-line
descriptions.
2015-06-12 15:36:20 -04:00
Mike Pennisi 80c67e56c1 Remove duplicative test
The assertions of this file are also made in another more complete test:
`tv-line-terminator-sequence.js`. Remove this file in favor of that one.
2015-06-12 12:02:33 -04:00
Mike Pennisi 5ca7a58e75 Introduce additional tests for ES6 templates 2015-06-12 12:02:01 -04:00
Mike Pennisi bd3d160ba1 Reorganize existing tests 2015-06-12 11:30:44 -04:00
Brian Terlson a1437652ab Merge pull request #313 from evilpie/includes
Use the more common array syntax for includes
2015-06-11 12:07:48 -04:00
Brian Terlson 488c0a71ce Merge pull request #314 from arv/fix-yaml-carriage-return
Fix monkey yaml's handling of carriage return
2015-06-11 12:06:10 -04:00
Erik Arvidsson be26179719 Fix monkey yaml's handling of carriage return
monkeyYaml didn't split lines correctly leading to \r in resulting
values.

Fixes #295
2015-06-10 10:45:23 -04:00
Tom Schuster 64fd1026dd Use the more common array syntax for includes 2015-06-10 14:56:16 +02:00
Brian Terlson 36cbdcf8ec Merge pull request #312 from bocoup/add-omitted-negative
Insert omitted `negative` tag
2015-06-09 17:01:59 -07:00
Brian Terlson 7eb27329b3 Merge pull request #307 from bocoup/remove-fail
Remove `$FAIL` function
2015-06-09 16:59:13 -07:00
Mike Pennisi c7fb97765e Insert omitted `negative` tag
This test exercises an early error, so it should be declared with the
`negative` tag.
2015-06-09 19:48:29 -04:00
Mike Pennisi 92890e6723 Remove `$FAIL` function
This function is equivalent to `$ERROR` (which is automatically included
in test environments). Remove the harness file that defines the
function, remove references to the file from test `includes` lists, and
update scripts to instead invoke the `$ERROR` function.
2015-06-09 19:44:25 -04:00