Commit Graph

962 Commits

Author SHA1 Message Date
Mike Pennisi 6e9d88a293 Extend coverage for PerformPromiseRace 2016-01-07 12:42:21 -05:00
Mike Pennisi bb26beece2 Extend coverage for PerformPromiseAll 2016-01-07 12:42:21 -05:00
Leonardo Balter 5e653f2e6c ObjectBindingPatterns can't end with multiple commas 2015-12-29 16:50:23 -05:00
Leonardo Balter 7e24ed9999 Destructuring Binding - syntax and simple initialization 2015-12-29 16:31:12 -05:00
André Bargull 92423d3c9f Add tests for instanceof operator when prototype property is primitive or getter 2015-12-22 19:05:53 +01:00
Jordan Harband f1d072dec2 Ensure verifyConfigurable is last, because side effects suck 2015-12-22 09:25:33 -08:00
Jeff Walden 78ca60e6cf Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let". 2015-12-18 15:03:04 -05:00
André Bargull b62dccf1dc Add test cases for recent ES2016 fixes
- lastIndex in RegExp.prototype[Symbol.split]: tc39/ecma262@08b4756747
- Missing number conversion in DataView.prototype.setXXX: tc39/ecma262@4f875fe96d
- Negative zero byteoffset in TypedArray: tc39/ecma262@2d1ed20db7
- EvalDeclarationInstantiation throws TypeError: tc39/ecma262@2be6968715
- BindingRestElement allows BindingPattern: tc39/ecma262@d322357e6b
- Eval in parameters with computed property keys: tc39/ecma262@04e2e9b719
- Use strict with non-simple parameters: tc39/ecma262@15b0db41ed
- __proto__ in strict mode: tc39/ecma262@5c1984334d
2015-12-15 17:33:49 +01:00
Jordan Harband 17e9f3aa00 Add Proxy tests to ensure observable semantics are maintained 2015-12-14 17:00:33 -08:00
Jordan Harband a9503d5543 Adding keys during enumeration should not result in their appearance.
Per 9bd1954950 and https://github.com/tc39/test262/pull/453#discussion_r47556411
2015-12-14 14:13:01 -08:00
Jordan Harband 3dea218911 Minor review feedback 2015-12-14 12:20:14 -08:00
Jordan Harband bf378352c7 Ensure fakeObject has "entries" and "values" 2015-12-14 12:15:21 -08:00
Gorkem Yakin 07eafc6651 Merge pull request #448 from anba/arraybuffer_coverage
Add tests for ArrayBuffer and ArrayBuffer.prototype.slice
2015-12-10 08:29:49 -08:00
Gorkem Yakin ca0e411870 Merge pull request #447 from anba/promise_coverage
Improve test coverage for various Promise methods
2015-12-10 08:29:38 -08:00
Rick Waldron 59dfae6311 Merge pull request #450 from cscott/promise-improvements
Remove unnecessary ES2015 syntax; add feature flags where appropriate.
2015-12-04 14:50:52 -05:00
André Bargull 4341537ecd Add 'class' features tag 2015-12-04 14:31:01 +01:00
C. Scott Ananian bae004d531 Remove unnecessary ES2015 syntax; add feature flags where appropriate.
This allows these tests to be more easily reused to test Promise
implementations in isolation.
2015-12-03 17:34:17 -05:00
Gorkem Yakin 47d3eb1bfe Merge pull request #446 from anba/es2016_december_update
Updates for ES2016 Draft 2015-12-01
2015-12-03 13:15:34 -08:00
André Bargull bd8c91e250 Updates for ES2016 Draft 2015-12-01
- RegExp.prototype[Symbol.split] calls ToUint32 (https://github.com/tc39/ecma262/issues/92)
- Species lookup removed from Promise.all and Promise.race (https://github.com/tc39/ecma262/issues/151)
- Generator functions are no longer constructors (https://github.com/tc39/ecma262/pull/171)

Fixes #444
2015-12-02 18:07:06 +01:00
André Bargull 5279bcb174 Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
André Bargull 6fcd24cd47 Add tests for ArrayBuffer and ArrayBuffer.prototype.slice 2015-12-02 18:05:12 +01:00
André Bargull 38c6700cbb Test built-in function requirements of Promise and Proxy helper functions 2015-11-24 20:12:55 +01:00
Jordan Harband 7a5385e2ab Add `es7id: pending` per https://github.com/tc39/test262/pull/95#issuecomment-157790248 2015-11-23 11:04:45 -06:00
Jordan Harband e459048f22 Add Object.values tests 2015-11-22 00:56:43 -06:00
Jordan Harband b517ca7119 Add Object.entries tests 2015-11-22 00:52:49 -06:00
André Bargull 56d6eefb69 Fix expected completion value
- if-statement completion value semantics was not properly updated in ES2015
2015-11-11 17:47:15 +01:00
André Bargull 77297535af Interpret date-only forms as UTC
- Don't interpret date-only as local time
2015-11-11 17:46:32 +01:00
André Bargull 1da4c78051 Revert primitive wrapper prototypes and String#split to ES5
- Revert Number, Boolean and String prototypes to ES5 semantics
- Revert String.prototype.split's to ES5 behavior
2015-11-06 18:50:44 +01:00
Mike Pennisi e39f8d88c5 Add tests for well-known Symbol: @@unscopables 2015-10-05 11:57:31 -04:00
Gorkem Yakin 26e6fd7c17 Convert binary integers to octal in octal integer tests 2015-09-30 08:54:45 -07:00
Brian Terlson 0d9733e93b Merge pull request #432 from cfarm/increment-typo
fixes increment typo
2015-09-18 10:53:14 -07:00
Gorkem Yakin 117c3f386e Merge pull request #418 from bocoup/symbol-to-primitive
Add tests for well-known Symbol: @@toPrimitive
2015-09-18 09:07:51 -07:00
Catherine Farman b175e34478 fixes increment typo 2015-09-18 11:14:32 -04:00
Gorkem Yakin df1d78d10f Merge pull request #399 from bocoup/symbol-match
Add tests for @@match
2015-09-14 14:29:28 -07:00
Mike Pennisi 62d5787b09 Add tests for @@match
Introduce tests for the well-known Symbol, `@@match`. This effects the
behavior of `String.prototype.match` and is also used by the IsRegExp
abstract operation.
2015-09-14 17:16:37 -04:00
Mike Pennisi a63d75c1b6 Add tests for well-known Symbol: @@toPrimitive
Split up test files as per review feedback.
2015-09-12 14:47:38 -04:00
Gorkem Yakin 32efa4a289 Merge pull request #407 from bocoup/symbol-split
Add tests for well-known Symbol: @@split
2015-09-10 16:57:00 -07:00
Mike Pennisi 8879cde471 Add tests for well-known Symbol: @@search 2015-09-08 19:15:19 -04:00
Rick Waldron acf2d0cb11 Merge pull request #408 from anba/es2015_changes
Tests for changes introduced in ES2015 (Annex E)
2015-09-07 15:32:36 -04:00
Rick Waldron 5ddb903e98 Merge pull request #393 from anba/non-browser
Improve compatibility for engines without support for Annex B and non-standard features
2015-09-07 15:32:03 -04:00
Rick Waldron 4cb2d26044 Merge pull request #398 from anba/special_casing
String.prototype.to{Lower,Upper} tests for special casing
2015-09-07 15:31:42 -04:00
André Bargull ffec41b7af Improve compatibility for engines without support for Annex B 2015-09-07 20:40:09 +02:00
André Bargull 3a30a72269 Add tests for special case mappings 2015-09-07 18:22:07 +02:00
André Bargull df9bf58204 Tests for changes introduced in ES2015 (Annex E)
- String case functions iterate over code points
- Has called before Get in Array.p.reverse
- Add test for web-compat Array.p.splice behaviour; Plus missing test for no arguments case
- ToObject no longer applied to this-value in Array.p.toLocaleString
- ToObject no longer applied to this-value in Object.p.toLocaleString
- Add tests for Object.p.propertyIsEnumerable and symbol property keys
- Add tests for Object.p.hasOwnProperty and symbol property keys
- Test property descriptor attributes of message property
- Tests for RegExp constructor checks
- Date constructor when called with date object
- TimeClip never returns negative zero
2015-09-07 17:25:55 +02:00
unknown 35038fdb10 update tests for arrow-function 2015-09-07 14:51:11 +08:00
Rick Waldron 03d2f68c9c Remove all remaining occurrences of runTestCase 2015-09-04 16:47:13 -04:00
Gorkem Yakin fb09f50296 Merge pull request #391 from bocoup/Reflect
Add tests for Reflect
2015-09-04 12:22:35 -07:00
Rick Waldron 9ccc663936 Merge pull request #415 from anba/remove-runTestCase-finally
Replace runTestCase when used with try-finally
2015-09-04 15:20:26 -04:00
Rick Waldron 2bfe4a4716 Merge pull request #416 from anba/remove-runTestCase-language-rest
Replace runTestCase in test/language (part 2)
2015-09-04 15:18:40 -04:00
Leonardo Balter 40675b1eb5 Add tests for Reflect.setPrototypeOf 2015-09-04 14:50:15 -04:00
Leonardo Balter d3743c3ba7 Add tests for Reflect.set 2015-09-04 14:50:15 -04:00
Leonardo Balter e7f5f3cf58 Add tests for Reflect.preventExtensions 2015-09-04 14:50:14 -04:00
Leonardo Balter bc51cfa0e0 Add tests for Reflect.ownKeys 2015-09-04 14:50:14 -04:00
Leonardo Balter a66ae7cbce Add tests for Reflect.isExtensible 2015-09-04 14:50:14 -04:00
Leonardo Balter 257bd7b48e Add tests for Reflect.has 2015-09-04 14:50:14 -04:00
Leonardo Balter b2fd133f88 Add tests for Reflect.getPrototypeOf 2015-09-04 14:50:13 -04:00
Leonardo Balter ec82bff120 Add tests for Reflect.getOwnPropertyDescriptor 2015-09-04 14:50:13 -04:00
Leonardo Balter efac2336c2 Add tests for Reflect.get 2015-09-04 14:50:12 -04:00
Leonardo Balter 6326408215 Add tests for Reflect.enumerate 2015-09-04 14:50:12 -04:00
Leonardo Balter ed233ccb2d Add tests for Reflect.deleteProperty 2015-09-04 14:50:11 -04:00
Leonardo Balter 2fcf931f81 Add tests for Reflect.defineProperty 2015-09-04 14:50:11 -04:00
Rick Waldron f74b1cb02c Remove leftover "includes: [runTestCase.js]" 2015-09-04 13:46:54 -04:00
Leonardo Balter 980e50441f Add tests for Reflect.construct 2015-09-04 13:33:09 -04:00
Leonardo Balter bdcf4fd877 Add tests for Reflect.apply 2015-09-04 13:33:08 -04:00
Leonardo Balter ff961826da Add tests for the Reflect object 2015-09-04 13:33:08 -04:00
Rick Waldron a2554d909b Merge branch 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 into anba-remove-runTestCase-builtins-other
# By André Bargull
# Via André Bargull
* 'remove-runTestCase-builtins-other' of https://github.com/anba/test262:
  Replace runTestCase with assert helpers, rest [test/built-ins]
  Replace runTestCase with assert helpers [test/built-ins]

Conflicts:
	test/built-ins/Array/from/S22.1.2.1_T1.js
	test/built-ins/Array/from/S22.1.2.1_T2.js
	test/built-ins/Array/from/S22.1.2.1_T3.js
2015-09-04 13:25:41 -04:00
Leonardo Balter 73409cea4e Add tests for default parameters 2015-09-02 18:01:51 -04:00
Rick Waldron e80b669a37 Merge pull request #404 from bocoup/update-array-from
Update tests for Array.from
2015-09-02 17:37:30 -04:00
Leonardo Balter 3bdc467c51 Update tests for Array.from
- fixed a false positive where argument-passed-null.js was returning a TypeError from 22.1.2.1 step 5
- created 2 tests from argument-passed-null to assert this as null and items as null
- fixed reference info on Array.from_arity.js
- fix tests at Array.from_forwards-length-for-array-likes
- static checks on calling-from-valid-1-onlyStrict.js
- static checks on calling-from-valid-1-noStrict.js
- static checks on calling-from-valid-2.js
- removed create-typedarray-from.js, that test belong to es6id 22.2.2.1
- removed mapfn-invalid-typeerror-1.js - false positive from 22.1.2.1 step 5
- moved mapfn-invalid-typeerror-2.js to more spread tests where mapfn is not callable
- ...
2015-09-02 17:36:11 -04:00
Rick Waldron a2a92d0765 Merge pull request #402 from bocoup/symbol-replace
Add tests for well-known Symbol: @@replace
2015-09-02 17:20:17 -04:00
Rick Waldron 574c87b167 Merge pull request #390 from bocoup/Array.prototype.copyWithin
Add tests for Array.prototype.copyWithin
2015-09-02 17:16:07 -04:00
Rick Waldron 50423896d5 Merge pull request #414 from bocoup/symbol-to-string-tag
Add tests for well-known Symbol: @@toStringTag
2015-09-02 17:15:55 -04:00
Gorkem Yakin c04984872d Merge pull request #370 from bocoup/symbol-has-instance
Add tests for well-known Symbol, @@hasInstance
2015-08-31 16:32:55 -07:00
Dan Ehrenberg a58a3a0ad9 Fix Array.from_arity test
An extra newline in a comment prevented the import from being parsed properly.
2015-08-25 14:37:37 -07:00
Brian Terlson c4231d4948 Merge pull request #420 from bakkot/patch-1
Wrong error message in function-code/S10.2.1_A1.js
2015-08-24 15:25:32 -07:00
Kevin Gibbons 69969e16b1 Remove extraneous indent in header, for consistency 2015-08-24 15:24:10 -07:00
Kevin Gibbons 8759c88bec Wrong error message in function-code/S10.2.1_A1.js 2015-08-18 17:47:02 -07:00
Mike Pennisi 4e88365dc6 Add tests for well-known Symbol: @@toPrimitive 2015-08-16 18:37:22 -04:00
André Bargull 4ec97779fd Replace runTestCase with assert helpers, rest [test/built-ins] 2015-08-13 17:57:23 +02:00
André Bargull 1b14708467 Replace runTestCase with assert helpers [test/built-ins] 2015-08-13 17:50:58 +02:00
André Bargull bd603294cb Replace runTestCase with assert, try-finally 2015-08-13 17:43:11 +02:00
André Bargull 52a706c022 Replace runTestCase with assert, try-finally, [test/built-ins/Array] 2015-08-13 17:42:40 +02:00
André Bargull 6b48d9f1b2 Replace runTestCase with assert, try-finally, [test/built-ins/Object] 2015-08-13 17:42:06 +02:00
André Bargull 8447a55e49 Replace runTestCase with assert helpers [test/language/directive-prologue] 2015-08-13 17:35:04 +02:00
André Bargull 789224fbaa Replace runTestCase with assert helpers [test/language/function-code] 2015-08-13 17:34:40 +02:00
André Bargull 73d5292b77 Replace runTestCase with assert helpers [test/language/expressions] 2015-08-13 17:34:17 +02:00
André Bargull ee8a222125 Replace runTestCase with assert helpers [test/language/statements] 2015-08-13 17:33:42 +02:00
André Bargull 2d5e7e0d44 Replace runTestCase with assert helpers [test/language/literals] 2015-08-13 17:33:06 +02:00
André Bargull 2fe6cac16a Replace runTestCase with assert helpers [test/language/reserved-words] 2015-08-13 17:32:43 +02:00
André Bargull ba1b02a047 Replace runTestCase with assert helpers [test/language/eval-code] 2015-08-13 17:32:19 +02:00
André Bargull 27b234f708 Replace runTestCase with assert helpers [test/language/arguments-object] 2015-08-13 17:31:54 +02:00
Brian Terlson 39b5b7272c Merge pull request #392 from anba/remove-runTestCase-throws
Replace runTestCase with assert.throws
2015-08-11 10:42:07 -07:00
André Bargull 4f35b40617 Replace runTestCase with assert helpers [test/built-ins/Object] 2015-08-11 17:53:40 +02:00
André Bargull 44bc67797e Replace runTestCase with assert helpers [test/built-ins/Object/defineProperties] 2015-08-11 17:53:17 +02:00
André Bargull 0a37298b46 Replace runTestCase with assert helpers [test/built-ins/Object/defineProperty] 2015-08-11 17:52:55 +02:00
André Bargull c2a61d1735 Replace runTestCase with assert helpers [test/built-ins/Object/{getOwnPropertyNames, keys}] 2015-08-11 17:52:32 +02:00
André Bargull ed0a2bad55 Replace runTestCase with assert helpers [test/built-ins/Object/getOwnPropertyDescriptor] 2015-08-11 17:52:09 +02:00
André Bargull 8d358cbd07 Replace runTestCase with assert helpers [test/built-ins/Object/is{Frozen, Extensible, Sealed}] 2015-08-11 17:51:42 +02:00
André Bargull 9cc4016866 Replace runTestCase with assert helpers [test/built-ins/Object/{freeze, preventExtensions, seal}] 2015-08-11 17:51:16 +02:00
André Bargull 4facaaab5f Replace runTestCase with assert helpers [test/built-ins/Object/create] 2015-08-11 17:50:53 +02:00
André Bargull 589b638ab5 Replace runTestCase with assert.throws [test/built-ins] 2015-08-11 17:44:37 +02:00
André Bargull edc902aff5 Replace runTestCase with assert.throws [test/built-ins/Array] 2015-08-11 17:44:26 +02:00
André Bargull f3e919209c Replace runTestCase with assert.throws [test/built-ins/Object] 2015-08-11 17:43:48 +02:00
André Bargull 1f97345668 Replace runTestCase with assert.throws [test/language/] 2015-08-11 17:43:21 +02:00
André Bargull 7f55f60b5f Replace runTestCase with assert.throws [test/language/statements] 2015-08-11 17:43:01 +02:00
André Bargull 3de484fe83 Replace runTestCase with assert.throws [test/language/expressions] 2015-08-11 17:42:41 +02:00
Mike Pennisi d6bbbc9aed Add tests for well-known Symbol: @@toStringTag 2015-08-07 20:02:44 -04:00
Brian Terlson 9cb89a4e3c Merge pull request #411 from anba/remove-runTestCase-language
Replace runTestCase in test/language
2015-08-06 10:24:08 -07:00
Brian Terlson d58c8b9a99 Merge pull request #410 from anba/remove-runTestCase-builtins
Replace runTestCase in test/built-ins
2015-08-06 10:23:59 -07:00
André Bargull d45d495ee6 Replace runTestCase with assert helpers [test/language/function-code] 2015-08-06 18:34:38 +02:00
André Bargull f939067d0e Replace runTestCase with assert helpers [test/language/future-reserved-words] 2015-08-06 18:34:15 +02:00
André Bargull 4c582732d0 Replace runTestCase with assert helpers [test/language/line-terminators] 2015-08-06 18:33:54 +02:00
André Bargull 31f027dc03 Replace runTestCase with assert helpers [test/language/types] 2015-08-06 18:33:32 +02:00
André Bargull 3c3e0a6adb Replace runTestCase with assert helpers [test/language/statements/] 2015-08-06 18:33:10 +02:00
André Bargull 713df280e5 Replace runTestCase with assert helpers [test/language/statements/for] 2015-08-06 18:32:38 +02:00
André Bargull efabdf8474 Replace runTestCase with assert helpers [test/language/expressions/] 2015-08-06 18:32:15 +02:00
André Bargull c7e160084c Replace runTestCase with assert helpers [test/language/expressions/object] 2015-08-06 18:31:44 +02:00
André Bargull 4eac0d909e Replace runTestCase with assert helpers [test/language/expressions/delete] 2015-08-06 18:31:06 +02:00
André Bargull ba8a41efe9 Replace runTestCase with assert helpers [test/language/arguments-object] 2015-08-06 18:30:42 +02:00
André Bargull 7d6d983ff9 Replace runTestCase with assert helpers [test/built-ins/] 2015-08-06 18:27:21 +02:00
André Bargull 50c29deb29 Replace runTestCase with assert helpers [test/built-ins/RegExp] 2015-08-06 18:26:59 +02:00
André Bargull 6cd7b9e275 Replace runTestCase with assert helpers [test/built-ins/Number] 2015-08-06 18:26:38 +02:00
André Bargull 33a7e03a76 Replace runTestCase with assert helpers [test/built-ins/Math] 2015-08-06 18:26:26 +02:00
André Bargull 8ea6a7e374 Replace runTestCase with assert helpers [test/built-ins/JSON] 2015-08-06 18:25:42 +02:00
André Bargull bec8782918 Replace runTestCase with assert helpers [test/built-ins/Date] 2015-08-06 18:25:18 +02:00
André Bargull cf231fb03b Replace runTestCase with assert helpers [test/built-ins/Error] 2015-08-06 18:24:55 +02:00
André Bargull 60a2879133 Replace runTestCase with assert helpers [test/built-ins/Function] 2015-08-06 18:24:43 +02:00
André Bargull b1ecdd00e8 Replace runTestCase with assert helpers [test/built-ins/String] 2015-08-06 18:23:58 +02:00
André Bargull a3bfd5a61f Replace runTestCase with assert helpers [test/built-ins/Array] 2015-08-06 18:19:54 +02:00
André Bargull 174f24b2f3 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/reduceRight] 2015-08-06 18:19:31 +02:00
André Bargull df43797c70 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/reduce] 2015-08-06 18:18:58 +02:00
André Bargull 976a687b27 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/map] 2015-08-06 18:18:33 +02:00
André Bargull e2e4fa4c93 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/filter] 2015-08-06 18:17:56 +02:00
André Bargull 354b7cc11b Replace runTestCase with assert helpers [test/built-ins/Array/prototype/lastIndexOf] 2015-08-06 18:17:18 +02:00
André Bargull 7510a91a7e Replace runTestCase with assert helpers [test/built-ins/Array/prototype/indexOf] 2015-08-06 18:16:54 +02:00
André Bargull 659aa4c0f8 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/some] 2015-08-06 18:16:23 +02:00
André Bargull a87aedd8a5 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/every] 2015-08-06 18:15:59 +02:00
André Bargull e8246fd9f0 Replace runTestCase with assert helpers [test/built-ins/Array/prototype/forEach] 2015-08-06 18:14:23 +02:00
Mike Pennisi 4693197b0c Add tests for well-known Symbol: @@split 2015-08-06 09:52:51 -04:00
Brian Terlson e06ede9a65 Merge pull request #401 from anba/remove_invalid_array_from_test
Remove invalid Array.from test
2015-08-05 13:32:32 -07:00
Brian Terlson 3a7db54b3e Merge pull request #403 from bocoup/fixes-proxy
Small fixes on Proxy constructor tests
2015-08-05 11:02:26 -07:00
Mike Pennisi bb0cbeb655 Add tests for well-known Symbol: @@replace 2015-08-05 09:39:00 -04:00
André Bargull da6c9b964c Remove invalid Array.from test 2015-08-05 07:25:31 +02:00
unknown e3cf0acb1c update tests for Array.from 2015-08-03 18:20:24 +08:00
Leonardo Balter fbf3b89870 Small fixes on Proxy constructor tests 2015-07-31 17:03:02 -04:00
Leonardo Balter e72f4bcd62 fixup! Add tests for Array.prototype.copyWithin 2015-07-31 16:46:46 -04:00
Leonardo Balter 2a32ff4a66 fixup! Add tests for Array.prototype.copyWithin 2015-07-31 16:44:28 -04:00
André Bargull 932bd1a12c Move intl tests to sub-folders 2015-07-31 17:12:08 +02:00
Brian Terlson eea8807d40 Merge pull request #355 from anba/regexp-unicode
B.1.4 and Unicode RegExps
2015-07-30 15:31:16 -07:00
André Bargull d1f718f806 Change test descriptions 2015-07-29 17:24:16 +02:00