Rick Waldron
08a967c8a4
BigInt: NaN is tested in nan-throws-rangeerror.js
2017-10-18 17:08:13 -04:00
Rick Waldron
e2e534b210
BigInt: NewTarget tests shouldn't include anything reaches step 2
2017-10-18 17:07:33 -04:00
Rick Waldron
747a2c86cf
Merge pull request #1288 from lars-t-hansen/atomics_wake_20171017
...
Make Atomics.wake test cases resilient on slow / overloaded systems
2017-10-17 13:24:34 -04:00
Robin Templeton
72fb638ca7
BigInt.parseInt tests ( #1208 )
...
* BigInt.parseInt tests
* update for PR#1208
* fix copyright notices
2017-10-17 12:40:22 -04:00
Lars T Hansen
510908517e
Make Atomics.wake test cases resilient on slow / overloaded systems
2017-10-17 14:56:52 +01:00
Rick Waldron
339222b445
Merge pull request #1279 from cxielarko/bigint-constructor
...
Property descriptor tests for BigInt.name, BigInt.length, and BigInt.prototype.constructor
2017-10-16 14:48:12 -04:00
Zirak
d36a1777b4
Test for proper handling of incomplete hex escapes ( #1274 )
...
See relevant firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1408452
2017-10-16 13:04:51 -04:00
Robin Templeton
0d44bc821d
[BigInt] constructor, name, length properties
2017-10-16 12:55:56 -04:00
Daniel Ehrenberg
e6df79231d
Update RegExp named capture tests for spec change ( #1270 )
...
The RegExp named groups specification has changed to not throw
errors in certain cases. This patch updates the test262 tests to match
the new specification, and throws in an additional test that verifies
the interaction between named group syntax and other replacement.
The tests pass on a version of V8 which implements the new semantics.
92ceba518c
2017-10-13 14:16:16 -04:00
Leo Balter
b77af3aa0f
Update tests for BigInt.prototype.toString
2017-10-12 16:19:46 -04:00
Robin Templeton
8ca8f06ba1
BigInt.prototype.toString
2017-10-12 15:13:52 -04:00
Leo Balter
b8abd71305
fix repeated features tags ( #1266 )
2017-10-06 12:29:33 -04:00
Leo Balter
b3092c61b6
Add generators flags for tests depending on generators features ( #1259 )
...
* Add missing generators feature flags
* Generate files
* Add generators flags
* fixup! Add generators flags
2017-10-04 16:12:34 -04:00
Rick Waldron
a7b5a7aa97
Features.txt: Add string-trimming; replace "#" in feature tags ( #1247 )
2017-10-03 17:02:29 -04:00
Robin Templeton
184a37f011
additional BigInt JSON tests ( #1235 )
...
* additional BigInt JSON tests
* single quotes
* BigInt stringify order of steps
2017-10-03 17:00:31 -04:00
Leo Balter
9737a5ff73
Improve tests for BigInt.prototype.valueOf ( #1256 )
...
* Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
2017-10-03 16:51:07 -04:00
Robin Templeton
5f338a30a1
Add tests for BigInt.prototype.valueOf ( #1234 )
...
* BigInt valueOf tests
* add features from typeCoercion.js
2017-10-02 16:13:09 -04:00
Leo Balter
c969153145
Fix a test looping for space separator chars
2017-09-26 14:13:29 -04:00
Leo Balter
60782de95e
Tag tests for U+180E and complete coverage for RegExp matching
2017-09-25 15:27:59 -04:00
Daniel Ehrenberg
554d1fe147
Merge pull request #1224 from thejoshwolfe/bigint-asuintn
...
BigInt.asUintN tests
2017-09-25 08:06:55 -04:00
Leo Balter
7cbbe51216
Add cross-realm feature
2017-09-22 15:29:10 -04:00
Josh Wolfe
781388bddf
fix copypaste error
2017-09-21 11:42:23 -07:00
André Bargull
804e008310
Split Annex-B parts of non-unicode-malformed.js into annexB folder
2017-09-18 14:39:32 -04:00
Josh Wolfe
dafde72971
BigInt.asUintN tests
...
* typeCoercion.js supports ToIndex
* typeCoercion.js supports ToBigInt
* updated BigInt.asIntN type coercion tests to use typeCoercion.js
2017-09-12 18:38:29 -07:00
Leo Balter
b8ca6099cf
Merge pull request #1221 from rwaldron/thejoshwolfe-type-coercion
...
type coercion harness utilities + features flags + linting
2017-09-11 14:54:08 -04:00
Lars T Hansen
290799bbee
Remove some spurious code
2017-09-08 16:00:26 -04:00
Lars T Hansen
b279f4c1b8
Make 'wait' tests resilient on slow test systems
2017-09-08 16:00:26 -04:00
Rick Waldron
e3447b8200
features: update all features flags for all test files with harness/* deps that require a feature flag
2017-09-08 12:34:19 -04:00
Josh Wolfe
f83adad4bd
test for String.prototype.indexOf first parameter type coercion
2017-09-08 10:15:19 -04:00
Josh Wolfe
0f3f22f6ab
use informative stack traces instead of loops
2017-09-08 10:15:19 -04:00
Josh Wolfe
29938e9525
type coercion harness utilities
2017-09-08 10:15:19 -04:00
Leo Balter
7f88a6d7f9
Add other missing Symbol feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
ca1871bafd
Add missing Symbol.toStringTag feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
1bdddabf97
Add missing Symbol.split feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
5fc0a7c6a1
Add missing Symbol.species feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
a9099c1f20
Add missing Symbol.replace feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
f52f233934
Add missing Symbol.match feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
72537004b0
Add missing Symbol.isConcatSpreadable feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
2bee5df77a
Add missing Symbol.iterator feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
c41faf1aca
Add missing Symbol features flags
2017-09-07 15:51:13 -04:00
Leo Balter
be420f34f0
Fix cross realm tests in Proxy.construct
2017-09-06 17:05:55 -04:00
Leo Balter
cf43f93284
Address feedback review
2017-09-06 16:45:26 -04:00
Aleksey Shvayka
97a04de2de
improve & join undefined apply tests
2017-09-06 16:45:26 -04:00
Josh Wolfe
443b15e43e
Add tests for BitInt.asIntN ( #1191 )
2017-09-06 13:52:08 -04:00
André Bargull
e44d73733b
Expect early SyntaxError when character range consists of two character classes
2017-09-05 11:18:06 -04:00
André Bargull
f3cd58335f
Remove duplicate property keys from getOwnPropertyDescriptors
...
Because Proxies no longer allow to return duplicate property keys.
2017-09-05 11:18:06 -04:00
André Bargull
ed2093b5f0
Add features flag for BigInt to the only test missing it
2017-09-05 11:18:06 -04:00
Leo Balter
7765873c3e
Refactor tests for the BigInt construtor
2017-08-25 15:56:11 -04:00
Robin Templeton
37beb36524
add BigInt tests
2017-08-24 15:58:14 -04:00
Leo Balter
f1d7a67e11
Apply feedback for RegExp.prototype.flags ( #1196 )
...
* Apply feedback for RegExp.prototype.flags
Ref #1149
2017-08-23 15:03:28 -04:00
Aleksey Shvayka
d91044c788
Improve RegExp.prototype.flags coverage ( #1149 )
2017-08-23 14:03:01 -04:00
Leo Balter
8422147c17
Revert "Tests for NumericSeparatorLiteral. Closes gh-1051" ( #1188 )
2017-08-21 11:54:21 -04:00
Rick Waldron
3dd50181d2
Tests for NumericSeparatorLiteral, parseFloat(...)
2017-08-21 11:46:31 -04:00
Rick Waldron
9380826d5b
Tests for NumericSeparatorLiteral, Number(...)
2017-08-17 09:50:33 -04:00
Leo Balter
e467c83aa0
Merge pull request #1156 from ljharb/finally
...
Promise.prototype.finally: add tests
2017-08-11 12:38:48 -04:00
Rick Waldron
fe7e906f4a
Proxy ownKeys should throw a TypeError if returned keys are not String or Symbol. Fixes gh-1169 ( #1173 )
2017-08-11 12:18:06 -04:00
Rick Waldron
33995100cd
Remove duplicate frontmatter tags
2017-08-11 11:52:21 -04:00
Rick Waldron
9e88bb9a45
Proxy, [[OwnPropertyKeys]]: If trapResult contains any duplicate entries, throw a TypeError
...
Ref: https://github.com/tc39/ecma262/pull/833
2017-08-04 15:06:31 -04:00
Rick Waldron
3ebd97ca9b
Updates to Proxy trap: ownKeys
2017-08-04 11:58:55 -04:00
deathbearbrown
fe494ed4d7
add esid to Dataview frontmatter
2017-08-02 15:56:22 -04:00
deathbearbrown
2fa2c91899
add esid to boolean frontmatter
2017-08-02 15:56:13 -04:00
deathbearbrown
98ec72c17c
add esid to atomic frontmatter
2017-08-02 15:56:03 -04:00
Sue Lockwood
22dc5f99b2
fix valueof frontmatter under Date
2017-08-02 15:47:16 -04:00
deathbearbrown
b7676e8f5f
add esid to Date frontmatter
2017-08-02 15:47:16 -04:00
Jordan Harband
3528601c41
Promise.prototype.finally: add tests
2017-07-25 23:06:12 -07:00
deathbearbrown
5c4a2c087e
remove S# notes from esid
2017-07-25 16:42:06 -04:00
deathbearbrown
ea88caaedf
add esid to ArrayIterator/next tests
2017-07-25 16:42:06 -04:00
Mathias Bynens
953992d235
Update RegExp Unicode property escape tests per latest proposal & Unicode 10
2017-07-13 12:35:44 -04:00
deathbearbrown
af8ec67363
update pending esids in AsyncFunction tests
2017-07-13 12:26:08 -04:00
deathbearbrown
8b3dddc570
update esid on Boolean/prototype tests
2017-07-13 11:48:46 -04:00
deathbearbrown
1b911a8f8a
add esid to ArrayBuffer/symbol.species tests
2017-07-12 17:08:39 -04:00
deathbearbrown
77297f2a90
add esid to ArrayBuffer/prototype/slice tests
2017-07-12 17:07:46 -04:00
deathbearbrown
c2195a0aa1
add esid to ArrayBuffer/prototype/byteLength tests
2017-07-12 17:07:38 -04:00
deathbearbrown
9c69a0204e
add esid to ArrayBuffer/prototype tests
2017-07-12 17:07:30 -04:00
deathbearbrown
2ec260f126
add esid to ArrayBuffer/isView tests
2017-07-12 17:07:05 -04:00
deathbearbrown
95b2c2d8d1
add esid to ArrayBuffer tests
2017-07-12 17:06:57 -04:00
deathbearbrown
7cc2e921c8
add esid to array/prototype/values tests
2017-07-12 17:06:49 -04:00
deathbearbrown
b2737b2d82
add esid to array/prototype/unshift tests
2017-07-12 17:06:06 -04:00
deathbearbrown
2d13a07cc1
add esid to array/prototype/toString tests
2017-07-12 17:05:52 -04:00
deathbearbrown
20b8c9b896
add esid to array/prototype/splice tests
2017-07-12 17:05:44 -04:00
deathbearbrown
e07385fff4
add esid to array/prototype/Symbol.unscopables tests
2017-07-12 17:05:36 -04:00
deathbearbrown
4ef011ffcf
add esid to array/prototype/toLocaleString tests
2017-07-12 17:05:28 -04:00
deathbearbrown
7c3675494a
add esid to array/prototype/sort tests
2017-07-12 17:05:18 -04:00
deathbearbrown
474237a725
add esid to array/prototype/some tests
2017-07-12 17:05:07 -04:00
deathbearbrown
da291ca3b1
add esid to array/prototype/shift tests
2017-07-12 17:04:32 -04:00
deathbearbrown
a62da2b499
add esid to array/prototype/reverse tests
2017-07-12 17:04:18 -04:00
Lyza Danger Gardner
8da8fff0ad
Add esid
2017-07-12 17:03:52 -04:00
deathbearbrown
bd21c97126
add esid to ArrayIterator/toStringTag tests
2017-07-12 17:03:13 -04:00
Aleksey Shvayka
4327cdb207
Improve RegExp.prototype.source coverage ( #1145 )
2017-07-11 11:14:21 -04:00
deathbearbrown
4a9c9e9886
add esid to array/protoype
2017-07-05 10:10:28 -04:00
deathbearbrown
1122913fd9
add esid to array/prototype/slice tests
2017-06-30 15:08:08 -04:00
Lyza Gardner
518df03a59
Add `esid` to built-ins/WeakMap ( #1119 )
2017-06-30 10:46:27 -04:00
Sue Lockwood
73ec5e6cd9
add esid to array/prototype/reduceRight tests ( #1118 )
2017-06-30 10:45:25 -04:00
Sue Lockwood
051bbb88ff
add esid to array/prototype/reduce tests ( #1117 )
2017-06-30 10:45:16 -04:00
Sue Lockwood
5ff6550197
add esid to array/prototype/push tests ( #1116 )
2017-06-30 10:42:59 -04:00
Sue Lockwood
d6b492205d
add esid to array/prototype/pop tests ( #1115 )
2017-06-30 10:42:52 -04:00
Sue Lockwood
a6a3cf74c4
add esid to array/prototype/map tests ( #1114 )
2017-06-30 10:42:44 -04:00
Sue Lockwood
d22b84173e
add esid to array/prototype/lastIndexOf tests ( #1113 )
2017-06-30 10:42:36 -04:00
Sue Lockwood
7457fe6608
add esid to array/prototype/keys test ( #1112 )
2017-06-30 10:42:28 -04:00
Sue Lockwood
4fe640b297
add esid to array/prototype/join ( #1111 )
2017-06-30 10:42:18 -04:00
Sue Lockwood
54e6302219
add esid to array/prototype/indexOf ( #1110 )
2017-06-30 10:42:06 -04:00
Leo Balter
4cfa5a4206
Merge pull request #1108 from lyzadanger/esid-builtins-decodeURI
...
Add `esid` to built-ins/decodeURI
2017-06-30 10:41:56 -04:00
Leo Balter
6e78d1805d
Merge pull request #1107 from lyzadanger/esid-builtins-decodeURIComponent
...
Add `esid` to built-ins/decodeURIComponent
2017-06-30 10:41:43 -04:00
Sue Lockwood
f5a5bdebb8
add esid to array/prototype/forEach tests ( #1106 )
2017-06-30 10:37:24 -04:00
Sue Lockwood
3aa94e2f08
add esid to array/prototype/findIndex tests ( #1105 )
2017-06-30 10:37:06 -04:00
Sue Lockwood
82e53e14c3
add esid to array/prototype/find tests ( #1104 )
2017-06-30 10:36:54 -04:00
Sue Lockwood
f395b67d29
add esid to array/prototype/filter tests ( #1102 )
2017-06-30 10:36:17 -04:00
Sue Lockwood
6155f6161a
add esid to array/prototype/fill tests ( #1101 )
2017-06-30 10:33:46 -04:00
Sue Lockwood
6443c43532
add esid to array/prototype/copyWithin ( #1100 )
2017-06-30 10:33:19 -04:00
Sue Lockwood
69d85e2622
add esid to array/prototype/entries ( #1099 )
2017-06-30 10:32:35 -04:00
Sue Lockwood
e9c50b3ac2
add esid to array/prototype/every ( #1098 )
2017-06-30 10:32:12 -04:00
Leo Balter
1319061ff7
Merge pull request #1097 from lyzadanger/esid-builtins-encodeuri
...
Add `esid` to built-ins/encodeURI
2017-06-30 10:29:58 -04:00
Leo Balter
2cd4c42d40
Merge pull request #1096 from lyzadanger/esid-builtins-encodeuricomponent
...
Add `esid` to built-ins/encodeURIComponent
2017-06-30 10:29:19 -04:00
Lyza Danger Gardner
3894e1fd13
Remove trailing whitespace
2017-06-30 10:08:11 -04:00
Lyza Danger Gardner
d854cfe266
Add esid
2017-06-30 10:08:11 -04:00
deathbearbrown
c30216b959
add esid to array/prototype/concat
2017-06-29 17:47:51 -04:00
Lyza Danger Gardner
26ef14c315
Add esid
2017-06-29 17:42:03 -04:00
Lyza Danger Gardner
4a9a3a2d06
add esid
2017-06-29 17:40:16 -04:00
Lyza Danger Gardner
a876cc2dae
Remove trailing whitespace
2017-06-29 17:35:30 -04:00
Lyza Danger Gardner
90528aaa09
Add esid
2017-06-29 17:35:30 -04:00
Lyza Danger Gardner
e26c66bfff
Add esid
2017-06-29 17:33:32 -04:00
Lyza Danger Gardner
e6712e0d16
Clean up formatting (indents)
2017-06-29 17:32:23 -04:00
Lyza Danger Gardner
8d8bdc1f92
Add esid
2017-06-29 17:32:23 -04:00
deathbearbrown
005e570f7c
add esid to Array/of
2017-06-29 17:29:17 -04:00
deathbearbrown
1341088b36
add esid to frontmatter for Array/length
2017-06-29 17:28:20 -04:00
deathbearbrown
2f4d0be4b8
Add esid to Array/isArray front matter
2017-06-29 17:24:52 -04:00
Lyza Danger Gardner
5ad8dc4219
Remove a wee bit o’ trailing whitespace
2017-06-29 17:23:07 -04:00
Lyza Danger Gardner
208344319e
Add esid
2017-06-29 17:23:07 -04:00
Lyza Danger Gardner
f3f2c4d47b
Remove trailing whitespace
2017-06-29 15:49:49 -04:00
Lyza Danger Gardner
b7daa23582
Add esid
2017-06-29 15:49:38 -04:00
Lyza Danger Gardner
dfad507eea
Remove trailing whitespace
2017-06-29 15:42:11 -04:00
Lyza Danger Gardner
5e59ccefdf
Add esid
2017-06-29 15:42:01 -04:00
Lyza Danger Gardner
6a0b72ce4a
Remove trailing whitespace
2017-06-29 14:03:20 -04:00
Lyza Danger Gardner
94f0c2401a
Add esid
2017-06-29 14:03:03 -04:00
Lyza Danger Gardner
4d896c0dc2
Remove trailing whitespace
2017-06-29 13:45:58 -04:00
Lyza Danger Gardner
f32871c708
Add esid
2017-06-29 13:45:45 -04:00
Daniel Ehrenberg
89be4ebff0
Merge pull request #924 from littledan/date-throw
...
Test that Date.prototype.toString throws for non-Date receiver
2017-06-29 10:33:17 +02:00
Rick Waldron
86209d8fd9
Make all harness/* file names consistent; update occurrences in test
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:58 -04:00
Rick Waldron
e5ffc904d6
Adding Symbol to Array.prototype.sort "throws on a non-undefined non-function" ( #1066 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 10:34:05 -04:00
Daniel Ehrenberg
e2ee94f452
Fix tests for toFixed and toExponential ( #1080 )
...
toExponential had a typo, and toFixed was against an earlier version
of the specification proposal. The tests pass against a version of V8
which attempts to implement the new spec.
2017-06-28 10:29:47 -04:00
Sue Lockwood
b07621ded1
update Array/From files ESID to sec-array.from ( #1077 )
2017-06-27 17:12:06 -04:00
Aleksey Shvayka
ce0ba9b2e6
add escaped substitution test
2017-06-27 00:45:08 +03:00
Aleksey Shvayka
f7b15e18d4
add empty replace test
2017-06-26 18:57:19 +03:00
Aleksey Shvayka
cb22dad417
add empty references tests
2017-06-26 18:35:16 +03:00
Aleksey Shvayka
c38f1d12b0
add groups object tests
2017-06-23 22:59:57 +03:00
Aleksey Shvayka
0d2b3562e9
Add basic Symbol constructor tests ( #1069 )
...
* add Symbol.length test
* add Symbol.name test
* add global.Symbol test
2017-06-22 22:11:26 -03:00
Rick Waldron
e3fa66550f
Merge pull request #930 from littledan/date-tostring-tests
...
Date toString tests
2017-06-22 16:22:08 -04:00
Daniel Ehrenberg
2f3787936b
Fix typo from review
2017-06-15 06:25:17 +02:00
Daniel Ehrenberg
0314c87b08
Add tests for Number printing precision ranges ( #932 )
...
These tests are against the needs-consensus pull request at
https://github.com/tc39/ecma262/pull/857
2017-06-12 20:10:15 -03:00
Jordan Harband
f1c1b33b53
Array.prototype.sort and %TypedArray%.prototype.sort should throw on a non-undefined non-function ( #1059 )
...
Per https://github.com/tc39/ecma262/pull/785/
2017-06-12 19:21:33 -03:00
Arup Rakshit
dabee7bd9b
Fix spelling typo. ( #1046 )
2017-05-22 11:53:38 -04:00
Leo Balter
06f2f3e810
Remove more unnecessary tests
...
These tests are not helpful for their respective APIs being tested.
They don't add any coverage for the built-in apis and basically check
behaviors that might conflict with a implementation defined global.
2017-05-17 19:33:54 -04:00
Leo Balter
715b9052cf
Remove unnecessary tests
...
These tests are not adding any coverage to the respective API they
should be covering.
There are other files checking cases for array-like objects, and
playing this with the global might cause issues and unnexpected
behavior on specific environments like browsers.
2017-05-17 15:27:51 -04:00
Mathias Bynens
d587abccdb
Fix test involving a Unicode property escape in a character class range ( #1034 )
...
Thanks to @anba for spotting this: 4843f049fa (r116528031)
2017-05-17 13:07:50 -04:00
Leo Balter
e25ec4b340
Remove SIMD tests ( #1032 )
...
The proposal is no longer on Stage 3 neither in active development.
From https://github.com/tc39/ecmascript_simd
> SIMD.js has been taken out of active development in TC39 and removed from Stage 3, and is not being pursued by web browsers for implementation.
2017-05-12 16:18:24 -04:00
Leo Balter
f6175af556
Add tests for Promises rejection queue ( #1029 )
...
* Add tests for Promises rejection queue
These basic tests assert the rejection is captured but a later queued job
from a chain of then calls.
* fixup! Add tests for Promises rejection queue
2017-05-10 12:59:18 -04:00
André Bargull
947bf6d3e2
Add tests for Array.prototype methods when length property exceeds safe integer limit ( #1028 )
2017-05-10 12:20:06 -04:00
Mathias Bynens
d5e1150325
Add regular RegExp Unicode property escape tests ( #1014 )
...
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/pull/8 .
2017-05-01 13:25:51 -04:00
Leo Balter
ca314476a9
Update RegExp tests for named-capturing and dotAll ( #1009 )
...
* Split order tests for RegExp#flags
* small fixes for RegExp named groups
* Remove invalid syntax
* The test mustn't include the global flag
2017-05-01 12:08:31 -04:00
jugglinmike
74954bfa91
Introduce automated validation for test format ( #994 )
...
This script is intended to identify common test file formatting errors
prior to their acceptance into the project. It is designed to support
future extensions for additional validation rules.
2017-05-01 12:04:05 -04:00
Rick Waldron
6fc8082e64
Merge pull request #963 from leobalter/prop-descs
...
Cleanup prop desc tests in the Array folder
2017-04-28 14:51:57 -04:00
Leo Balter
a09f857ed8
Merge pull request #1006 from leobalter/fix-info
...
Update RegExp#dotAll tests
2017-04-27 19:37:54 -04:00
Leo Balter
0f10d73fef
Split tests and fix actual/expected order
2017-04-27 19:33:42 -04:00
Daniel Ehrenberg
6ee183a057
RegExp lookbehind tests
...
Tests for the stage 3 proposal at
https://tc39.github.io/proposal-regexp-lookbehind/
Tests ported from V8, written by @hashseed
2017-04-27 19:33:40 -04:00
Leo Balter
7493787a3f
Replace duplicate case
2017-04-27 18:39:37 -04:00
Leo Balter
028d984c0e
Update RegExp#dotAll tests
2017-04-27 18:35:37 -04:00
Leo Balter
f2db2b6829
fix metadata for regexp.prototype.dotall
2017-04-27 18:24:48 -04:00
Daniel Ehrenberg
bfc9020d51
Tests for RegExp dotAll proposal ( #997 )
...
Proposal from @mathiasbynens at https://github.com/tc39/proposal-regexp-dotall-flag and https://tc39.github.io/proposal-regexp-dotall-flag/
2017-04-27 18:20:24 -04:00
⭐caitp⭐
91c53231d0
Add tests for observable [[GetOwnProperty]] ops in EnumerableOwnProperties ( #1003 )
2017-04-27 17:09:05 -04:00
Daniel Ehrenberg
6cf15f523a
RegExp named group tests ( #998 )
...
Tests against the Stage 3 named capture groups proposal
https://tc39.github.io/proposal-regexp-named-groups
2017-04-27 12:50:59 -04:00
Leo Balter
d6efc316ed
Update some tests to avoid $ERROR
2017-04-25 15:18:27 -04:00
Rick Waldron
f5d8b1c1fb
ArrayBuffer: constructor, name, length, descriptor ( #991 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-20 15:14:08 -04:00
André Bargull
94f6003d11
Optimize decodeURI/encodeURI tests ( #987 )
...
* Move decimalToHexString into harness instead of duplicating it in multiple files
* Optimize decimalToHexString and support numbers greater than 65535
* Replace alternative decimalToHexString function with include for decimalToHexString.js
* Add decimalToHex2String to return the string representation of a two-digit hex-number
* Replace decimalToHex2String with decimalToPercentHexString to return the percent hex-encoded string of a two-digit hex-number
* Replace two String.fromCharCode calls with a single call
* Further reduce string concatentations in decodeURI[Component] tests
* Remove unnecessary Test262Error error handling in catch-clauses
* Remove try/catch wrappings in decodeURI/encodeURI tests
2017-04-18 16:31:31 -04:00
Mathias Bynens
d354788f6f
RegExp property escapes: list emoji data version (UTR51) ( #981 )
2017-04-18 12:30:35 -04:00
Mike Pennisi
a61efb5192
Add omitted license information
...
As the author of these files, I can verify that they were contributed in
2015 on behalf of the V8 project.
2017-04-18 12:23:22 -04:00
Mike Pennisi
2c0c3e7f96
Correct typo in copyright information
2017-04-18 12:23:22 -04:00
Mathias Bynens
1c1935e363
Remove tests for Unicode properties that are no longer supported ( #980 )
...
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/27 .
2017-04-15 12:57:32 -04:00
Mathias Bynens
92a85ed8fd
Fix `Script_Extensions=Inherited` data ( #977 )
...
Ref. https://github.com/mathiasbynens/node-unicode-data/issues/45 .
Ref. da8ae69b9b
.
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/issues/7 .
2017-04-14 12:20:05 -04:00
André Bargull
d59e30c95e
Remove execute bit from files ( #976 )
2017-04-13 16:24:07 -04:00
Mathias Bynens
d993c4a9e8
Fix three broken RegExp property escape tests ( #974 )
...
c62ed61cfc
2017-04-13 14:40:18 -04:00
Mathias Bynens
44b40e083e
Add exhaustive tests for RegExp Unicode property escapes ( #971 )
...
Proposal: https://github.com/tc39/proposal-regexp-unicode-property-escapes
These tests have been generated by the script at https://github.com/mathiasbynens/unicode-property-escapes-tests . They check all the properties and values that should be supported by implementations against the symbols they’re supposed to match. False positives are detected as well.
Ref. #950 .
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/4 .
2017-04-13 11:22:49 -04:00
Joseph Pecoraro
5424c81184
Fix Function.prototype.bind test ( #958 )
...
The `length` property should be [[Configurable]]
https://tc39.github.io/ecma262/#sec-function.prototype.bind
Also the test was testing deleting the wrong property.
Fixes #957 .
2017-04-11 03:14:32 -04:00
Leo Balter
7972f9bbdc
Add and update common tests for Array and Array.prototype
...
Ref #960
2017-04-11 03:01:00 -04:00
Leo Balter
c58738e041
Add test for Array.name
2017-04-11 02:34:04 -04:00
Leo Balter
0546fb2f52
Update tests for Array.length
2017-04-11 02:34:03 -04:00
Leo Balter
e98ccd13ef
Move tests for Array `length` to a proper folder
2017-04-11 02:33:44 -04:00
André Bargull
da764cafa2
Add Function.prototype.toString tests for async generator functions ( #955 )
...
* Add Function.prototype.toString tests for many function forms
* Add non-const computed property name to Function.prototype.toString tests
* Split class method tests into class-expression and class-statement tests
* Add tests for unnamed function expression forms
* Add tests for async (generator) methods in class contexts
* Add test case for Function.prototype.toString on async arrow function
2017-04-10 14:37:07 -04:00
Daniel Ehrenberg
73c2d51734
Fix toFixed test to invoke toString() properly
2017-04-06 19:40:22 -04:00
Leo Balter
d8d6db785f
Merge pull request #949 from rwaldron/755
...
Fixes for gh-755, per reviews
2017-04-06 12:31:40 -04:00
Rick Waldron
72e7cd699f
Move proxy function proxy tests into own file
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-06 12:26:04 -04:00
Daniel Ehrenberg
2878106ca0
Fix offset for detached TypedArray test ( #946 )
...
Bug was reported by @anba at
https://github.com/tc39/ecma262/pull/852#issuecomment-291781031
Without this change, you'd expect a RangeError rather than a TypeError.
2017-04-06 12:05:43 -04:00
Choongwoo Han
ab9738c471
Tests for using internal byteOffset in TypedArray.prototype.set ( #944 )
2017-04-06 12:04:09 -04:00
Rick Waldron
2ac9ab1d31
Merge pull request #931 from littledan/tofixed-exactness
...
Test for the difference between toFixed and toString
2017-04-06 11:54:56 -04:00
Leo Balter
89160ff5b7
Merge pull request #926 from littledan/typedarray-constructor-edge-case
...
* Tests for throwing a TypeError in the TypedArray constructor on a detached buffer
Detached buffer causes an exception
- If it's already detached going into the constructor
- If the byteOffset coercion causes it to be detached
Tests are valid in ES2017
* Test that TypedArray constructor throws when detaching buffer in length calculation
This test is only valid with the PR in https://github.com/tc39/ecma262/pull/852
* Rename files per review
2017-03-27 13:55:54 -04:00
littledan
184275fb25
Tests for RegExp capture substitution out of bounds ( #925 )
...
In https://github.com/tc39/ecma262/pull/853 , standard semantics
for this case are proposed. This patch tests the case.
2017-03-27 13:53:33 -04:00
littledan
32e129676e
Test for TypedArray.prototype.fill semantics change ( #927 )
...
The change is proposed in https://github.com/tc39/ecma262/pull/856
as a fix to https://github.com/tc39/ecma262/issues/855
Here, the ToNumber coercion is done only once, rather than on each
iteration. It does not appear that there were previously any
tests against repeated coercion for this parameter previously.
Tested this test against V8, which failed, as V8 implements the
current spec rather than the proposed one.
2017-03-27 13:50:38 -04:00
Daniel Ehrenberg
e9a745646a
Test for the difference between toFixed and toString
...
This test comes from a note in the specification under toFixed.
It fails in ChakraCore and passes in other engines that I tested.
2017-03-23 19:05:32 +01:00
Doug Ilijev
333fa10c63
Fix invalid YAML. ( #929 )
2017-03-23 10:35:01 -07:00
Daniel Ehrenberg
99fa2a6c9e
Add tests for the formats of toString functions
2017-03-23 12:19:37 +01:00
Daniel Ehrenberg
bd685e552c
Tests for "Invalid Date" in more cases
...
Following the proposed specification in
https://github.com/tc39/ecma262/pull/848
2017-03-21 18:35:10 +01:00
Daniel Ehrenberg
b86b7031b8
Rename files per review
2017-03-21 18:04:50 +01:00
Daniel Ehrenberg
b3115654c1
Test toString() behavior of invalid Dates
2017-03-21 17:48:57 +01:00
Daniel Ehrenberg
1f065b5b71
Changes to Date test from review
2017-03-21 17:46:59 +01:00
Daniel Ehrenberg
dbb80c81a6
Test that TypedArray constructor throws when detaching buffer in length calculation
...
This test is only valid with the PR in https://github.com/tc39/ecma262/pull/852
2017-03-21 11:41:52 +01:00
Daniel Ehrenberg
68fafb4cbe
Tests for throwing a TypeError in the TypedArray constructor on a detached buffer
...
Detached buffer causes an exception
- If it's already detached going into the constructor
- If the byteOffset coercion causes it to be detached
Tests are valid in ES2017
2017-03-21 11:39:53 +01:00
Daniel Ehrenberg
7151f3247e
Test that Date.prototype.toString throws for non-Date receiver
...
Pending discussion of https://github.com/tc39/ecma262/issues/849
Test passes in V8.
2017-03-21 10:51:53 +01:00
Rick Waldron
0ca573826c
Merge pull request #908 from leobalter/793-invalid-indexof
...
Remove invalid String#indexOf test in a coercible Date instance
2017-03-20 14:30:45 -04:00
Leo Balter
9478a43ea7
Fix Date coercion tests ( #906 )
...
Fixes #767
2017-03-20 13:15:06 -04:00
Leo Balter
2f11b4d806
Add tests for instances of Async/Generator Functions that are not constructors ( #907 )
...
Fixes #779
2017-03-15 17:12:54 -04:00
Leonardo Balter
340543bc11
Rename top level 'name' and 'length' bindings
...
Fix 850
2017-03-14 12:43:24 -04:00
Leonardo Balter
238f4caa9a
Update length descriptor tests for Math properties
2017-03-14 10:50:01 -04:00
Leonardo Balter
f45341ca4e
Add and update descriptor tests for Math properties
2017-03-14 10:50:01 -04:00
Leonardo Balter
a7ee8fb735
Fix invalid String#indexOf test in a coercible Date instance
...
Fixes #793
As described by @ediosyncratic:
Date(0) flows through the given algorithm to ToDateString, which should:
> Return an implementation-dependent String value that represents tv as
> a date and time in the current time zone using a convenient, human-readable form.
The string is implementation-dependent and there is nothing constraining it to use
a two-digit day-of-month (so "Thu Jan 1, 1970, 0:0:0" would be valid), much less to
position it at index 8.
2017-03-13 19:07:06 -04:00
Leo Balter
c062d93012
Add Infinity test cases to Array.prototype.copyWithin ( #882 )
...
Fixes #861
Ref #849
Based on the cases from TypedArray.prototype.copyWithin
2017-03-13 10:50:10 -07:00
Leo Balter
ea45caf046
fix $.agent to $262.agent ( #876 )
...
Fixes #875
2017-03-02 12:00:16 -05:00
André Bargull
6b09ad0459
Update YAML frontmatter of some tests to be compatible with monkeyYaml ( #862 )
2017-03-01 16:35:37 -05:00
Rick Waldron
fdd2fa9b1c
Rename $ => $262. Fixes gh-802 ( #823 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-03-01 16:34:15 -05:00
Leo Balter
4546006977
Merge pull request #855 from anba/fix-async-sab-class-tests
...
Change tests for `extends null` and Intl legacy constructor semantics
Ref tc39/ecma262#781
Ref tc39/ecma402#84
2017-03-01 15:56:41 -05:00
Claude Pache
a266cfa8cb
Add tests for known violation of invariants ( #841 )
...
Some popular JavaScript engines display violation of invariants about
property attributes for some non-standard but “web-reality” object
properties. Add tests against such violations
Closes #653
Fixes #649
2017-03-01 15:32:46 -05:00
André Bargull
878d382eb9
Fix typos in built-ins/TypedArray/prototype/copyWithin
2017-02-22 18:11:25 +01:00
André Bargull
bb369e1e7c
Fix typo in TypedArray test with SharedArrayBuffers
2017-02-22 18:04:51 +01:00
⭐caitp⭐
be0964c8ff
Add tests for %TypedArray%.prototype.copyWithin() with target/start/end=Infinity ( #849 )
...
ToInteger can result in the values +Infinity and -Infinity.
2017-02-13 13:51:45 -08:00
littledan
f21ac5609b
Fix call to assert.notSameValue ( #859 )
...
Thanks to @demurgos for spotting this bug at #858
2017-02-13 13:48:38 -08:00
littledan
91ba9a0a25
Update RegExp tests for the semantics change ( #853 )
...
Spec change at https://github.com/tc39/ecma262/pull/798
2017-02-09 12:51:02 -05:00
littledan
1fb47cba88
Remove empty info section from a SharedArrayBuffer test ( #852 )
...
This section is useless (and also trips up the YAML parser V8 uses)
2017-02-07 15:41:48 -05:00
Shu-yu Guo
a72ee6d912
SharedArrayBuffer and Atomics tests ( #839 )
2017-02-07 11:17:31 -05:00
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
Josh Wolfe
4203261ba2
add line feed following `{` of F.p.toString output for dynamic functions ( #847 )
...
This is a continuation of 4a5c52beb5
.
2017-02-07 11:06:37 -05:00
Corey Frang
8a0563dd5e
Remove old test file (now using the named version)
2017-01-31 10:55:58 -05:00
Corey Frang
80b091ce2d
Add Array.prototype.every.length tests
2017-01-31 10:55:58 -05:00
Leo Balter
a8c0939bc3
Merge pull request #766 from juandopazo/date-utc-nan
...
Add tests for non-optional arguments of Date.UTC()
2017-01-23 18:10:21 -05:00
Lyza Danger Gardner
d13565ab05
Rename
2017-01-20 16:06:46 -05:00
Lyza Danger Gardner
da6657c94c
Add descriptor tests for sec-array.isarray
2017-01-20 16:06:46 -05:00
Rick Waldron
f280db452e
Test Symbol.toStringTag overrides on primitive wrapper prototypes. Closes gh-809 ( #837 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-01-20 11:55:36 -08:00
Michael "Z" Goddard
ced9bfd7be
Test that Number.prototype.toFixed.length is 1 ( #826 )
...
Add a test to confirm that the length member of
Number.prototype.toFixed is 1.
2017-01-19 22:33:53 -05:00
K. Adam White
182e0dee7b
Remove es6id line per PR review
2017-01-19 14:51:57 -05:00
K. Adam White
5d69e30929
Add Number.prototype.toFixed return value test
...
Adds a test to ensure that toFixed returns a string value
2017-01-19 14:51:57 -05:00
Rick Waldron
8178b763dc
Add Date.UTC(+/-Infinity) single arg test variants to infinity-make-day.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-01-19 12:00:10 -05:00
Rick Waldron
1163e1a6ff
Moves Date.UTC() test to no-args.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-01-19 11:58:26 -05:00
Rick Waldron
9a308a967b
Adds missing Date.UTC(NaN) variant, per review request.
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-01-19 11:55:54 -05:00
Michael Ficarra
9737f3704f
Function.prototype.toString no longer does line terminator normalisation ( #820 )
2017-01-09 14:25:02 -08:00
littledan
d9732d8323
Test for new TypedArray iterator detach logic ( #784 )
...
Tests new logic in https://github.com/tc39/ecma262/pull/724
2016-12-28 10:55:25 -08:00
Michael Ficarra
4a5c52beb5
add line feeds following `{` of F.p.toString output for dynamic functions ( #803 )
...
This aligns the tests with this recent change to the F.p.toString proposal:
7432ded0e6
2016-12-06 12:23:05 -05:00
Simon Richter
08071715e4
Add missing operator in test ( #804 )
...
Automatic Semicolon Insertion hides an error here by transforming a long
ReturnStatement into a ReturnStatement followed by an ExpressionStatement
that is never reached. The conditions on the second line are thus never
tested.
2016-12-06 12:22:29 -05:00
Kevin Gibbons
c779cba592
Remove tests for arguments.caller ( #797 )
2016-11-22 11:59:37 -05:00
Kevin Gibbons
e6abf652d9
Ensure that tests calling $DONE have the async flag
2016-11-21 10:14:30 -05:00
Dmitry Panov
ffd8039386
Replaced tabs with spaces in YAML.
2016-11-19 23:13:26 +00:00
Aleksey Shvayka
bef7f988d2
Ensure Proxy [[Get]] and [[Set]] pass correct receiver ( #792 )
...
* Ensure Proxy [[Get]] passes correct receiver
* add [[Get]] test for proxy in prototype
* diversify how traps are missing
* ensure [[Set]] passes correct receiver
* rename to match other tests
* remove extra tests
* add esid
* add description
2016-11-17 14:26:34 -08:00
Sathya
84e6ba81d0
Update context-non-object-with-promise.js ( #790 )
...
Promise constructor accepts only one executor function
2016-11-15 10:45:03 -08:00
Henrique Ferreiro
d1d91af256
Integer indexed property descriptor must be non-configurable ( #786 )
...
* Integer indexed property descriptor must be non-configurable
* Make the configurable key explicitly 'false'
2016-11-11 09:42:01 -08:00