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
Daniel Ehrenberg
193779ee0c
Add ASI let/yield test ( #1084 )
...
I had previously intended to add this test in
https://github.com/tc39/test262/pull/968 ,
but it seems like I instead checked in a copy of another test. This
patch changes it to test what was initially intended, which is part of
the semantics for https://github.com/tc39/ecma262/pull/885
2017-06-30 10:26:50 -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
461e84459b
Merge pull request #1083 from rwaldron/1082
...
Duplicate src/dstr-assignment/obj-rest-computed-property.case into regular and sloppy versions. Fixes gh-1082
2017-06-29 10:41:52 +02: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
38150b3535
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 15:49:02 -04:00
Rick Waldron
144d73ef27
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 12:10:19 -04:00
Rick Waldron
13dfae4da9
Fixes test/harness/nans.js
...
- correction to license
- use Number.isNaN
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
a6aa58a44f
harness test: propertyHelper.js (error case)
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
7eef084cf5
harness test: timer.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
c896312175
Update description in test/harness/sta-override-error.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
5165cc11cf
harness test: testTypedArray.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
537ef01882
harness test: fnGlobalObject.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
1839050378
Removes relocated error.js tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
5f5e1655e1
harness test: nan.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
7c9b648d08
harness test: tcoHelper.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
8a5841acdc
harness test: promiseHelper.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
3e85c608da
harness test: sta.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
759ad854e9
harness test: detachArrayBuffer.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
8e360021b8
harness test: decimalToHexString.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
86f03a2ef8
harness test: dateConstants.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
27f3452b33
harness test: arrayContains.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04: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
Mike Pennisi
ef76e548a4
Re-generate tests
2017-06-28 11:24:36 -04:00
Mike Pennisi
81d00def42
Force "early error" tests to fail if evaluated
...
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -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
Leo Balter
29e69ddb4e
Merge pull request #1072 from rwaldron/1050-addl
...
Remove tests that allow `...{` in object destructuring. Ref gh-1050
2017-06-28 10:32:21 -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
Daniel Ehrenberg
c74e1e4edf
Merge pull request #1074 from shvaikalesh/improve-named-groups-coverage
...
Improve named groups coverage
2017-06-27 18:21:08 +02:00
Aleksey Shvayka
ce0ba9b2e6
add escaped substitution test
2017-06-27 00:45:08 +03:00
Rick Waldron
d0ba3251d2
Restore migration to assert.sameValue
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-26 14:36:51 -04: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
Rick Waldron
2dd8e8b2c4
Throw away tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 13:21:39 -04:00
Daniel Ehrenberg
a2f44c7151
Additional test for range case pointed out by @anba
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
0e6acc0842
Change test based on new spec version
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
b82be14e26
Add tests for invalid \c in character class
...
This patch implements tests for https://github.com/tc39/ecma262/pull/864
2017-06-23 12:16:28 -04:00
Daniel Ehrenberg
ce217fffad
Improve invalid \c escape tests
2017-06-23 12:16:28 -04:00
Rick Waldron
2086f66c55
Update verifyProperty to allow checking `value`
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 11:58:16 -04:00
Rick Waldron
1a2244faf8
Fix all test/harness/*.js tests ( #1068 )
...
$ test262-harness --hostType=d8 -t 4 --hostPath=`which d8` test/harness/*.js
Ran 147 tests
147 passed
0 failed
$ test262-harness --hostType=node -t 4 --hostPath=`which node` test/harness/*.js
Ran 147 tests
147 passed
0 failed
$ test262-harness --hostType=jsshell -t 4 --hostPath=`which js` test/harness/*.js
Ran 147 tests
147 passed
0 failed
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-22 22:25:35 -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
Kevin Gibbons
1ca752482d
Add test that noctal escapes are forbidden in strings in strict code
2017-06-19 12:03:47 -07: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
Leo Balter
6110675fd3
Merge pull request #1045 from caiolima/obj-rest-computed-prop
...
Adding case to computed property
2017-06-12 19:22:53 -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
Rick Waldron
44e19a0fe6
Throw away tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-12 17:10:27 -04:00
Rick Waldron
c8574edd9c
Merge pull request #968 from littledan/no-let-yield-await-asi
...
Tests for PR to Prohibit ASI between 'let' and 'yield'/'await'
2017-06-09 13:14:35 -04:00
Rick Waldron
670731a25e
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-31 16:05:26 -04:00
Rick Waldron
60a6a7c81e
Merge pull request #1039 from rwaldron/dstr-assignment_for-await-of
...
[WIP] for-await-of: dstr-assignment, templates & cases
2017-05-31 15:46:40 -04:00
Leo Balter
e8fb452df8
Merge pull request #1044 from rwaldron/dstr-binding-async-iteration
...
Move dstr-binding for-await-of cases and templates to dstr-binding-async-iteration. Fixes gh-1043
2017-05-25 15:39:18 -04:00
Caio Lima
8f5afc2915
Generated tests for computed property Object rest destructuring
2017-05-22 23:05:35 -03:00
Rick Waldron
0a66e9b9de
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 16:03:23 -04: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
dde12905df
Generate tests
2017-05-16 17:32:25 -04:00
Rick Waldron
9f3b85fb21
for-await-of: dstr-assignment, default template
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-16 13:24:41 -04:00
Rick Waldron
2b0a8cc1c4
Merge pull request #1037 from leobalter/asyncIterators
...
Add templates for dstr-binding w/ for-await-of looping over async iterators
2017-05-16 09:25:23 -04:00
Leo Balter
8d7e98265c
Generate tests
2017-05-15 16:02:44 -04:00
Leo Balter
5204678e8f
Generate tests
2017-05-15 15:25:33 -04:00
Leo Balter
17b13b9d01
Merge pull request #1020 from rwaldron/dstr-binding_for-await-of-async-gen-func-error
...
for-await-of: dstr-binding, error, async func & async gen templates
2017-05-12 18:28:39 -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
Rick Waldron
5f274a8581
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-12 16:01:41 -04:00
Leo Balter
5f04d2b1f3
Generate tests
2017-05-10 14:08:35 -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
Leo Balter
ed714d702a
Merge pull request #1017 from anba/expr-lookahead-restr
...
Expression statement lookahead restriction and identifier tests
2017-05-09 18:38:11 -04:00
Leo Balter
9481020e91
Merge pull request #1023 from anba/redeclaration
...
Lexical redeclarations in block- and switch-statements
Background feedback from @anba:
In https://tc39.github.io/ecma262/#sec-switch-statement-static-semantics-lexicallydeclarednames , all lexically declared names from the different case clauses are combined.
For each case clause, the LexicallyDeclaredNames definition from https://tc39.github.io/ecma262/#sec-block-static-semantics-lexicallydeclarednames applies, which has:
```
StatementListItem : Declaration
1. Return the BoundNames of Declaration.
```
And in https://tc39.github.io/ecma262/#prod-Declaration we've got:
```
Declaration[Yield, Await] : HoistableDeclaration[?Yield, ?Await, ~Default]
```
And in https://tc39.github.io/ecma262/#prod-HoistableDeclaration :
```
HoistableDeclaration[Yield, Await, Default] : FunctionDeclaration[?Yield, ?Await, ?Default]
```
And the BoundNames of a FunctionDeclaration is its BindingIdentifier https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-boundnames .
And there's also B3.3.5 (https://tc39.github.io/ecma262/#sec-switch-duplicates-allowed-static-semantics ) which allows duplicate FunctionDeclarations in sloppy mode in switch-statements.
2017-05-05 13:04:26 -04:00
André Bargull
0271179c4a
Use assert-lib: intl402/PluralRules
2017-05-04 21:25:02 +02:00
André Bargull
bfac377fca
Use assert-lib: intl402
2017-05-04 21:16:14 +02:00
André Bargull
3841b0a09e
Use assert-lib: intl402/String
2017-05-04 21:15:31 +02:00
André Bargull
8bed4d442d
Use assert-lib: intl402/NumberFormat
2017-05-04 21:14:46 +02:00
André Bargull
315031c07d
Use assert-lib: intl402/Number
2017-05-04 21:14:05 +02:00
André Bargull
c63cb39cbb
Use assert-lib: intl402/Intl
2017-05-04 21:13:23 +02:00
André Bargull
1579764e37
Use assert-lib: intl402/DateTimeFormat
2017-05-04 21:12:42 +02:00
André Bargull
94e9ad831e
Use assert-lib: intl402/Date
2017-05-04 21:12:00 +02:00
André Bargull
3aa427257b
Use assert-lib: intl402/Collator
2017-05-04 21:10:58 +02:00
André Bargull
49221fce1f
Remove no longer needed manual redeclaration tests
2017-05-04 09:34:34 -07:00
André Bargull
c8e808bc69
Generate new tests for redeclarations in block- and switch-statements
2017-05-04 09:29:39 -07:00
Joseph Pecoraro
19eb1d2e02
Add tests for completion value of function / class declaration statements ( #1012 )
2017-05-04 11:22:28 -04:00
Rick Waldron
278c9ad994
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 15:04:08 -04:00
Rick Waldron
c3c8d6f099
for-await-of: dstr-binding, error, async func & async gen templates
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 12:51:55 -04:00
André Bargull
e0c29310d9
Generate tests for yield and await as identifier
2017-05-02 12:09:33 -07:00
André Bargull
490b2dc461
Remove manual tests for 'yield' in generators
2017-05-02 12:09:32 -07:00
André Bargull
d887db88ee
Add tests escaped/unescaped yield/await labels
2017-05-02 12:09:30 -07:00
André Bargull
3d8fe2af4c
Add tests for contextual keywords with escape sequences
2017-05-02 12:09:29 -07:00
André Bargull
7a86baee7d
Add lookahead restriction tests for "let [" in expression statement contexts
2017-05-02 12:09:28 -07:00
André Bargull
75d153d280
Add tests to ensure async-functions/generators are not accepted in statement position
2017-05-02 12:09:27 -07:00
André Bargull
69735fd832
Move unary plus tests into correct directory
2017-05-02 12:09:26 -07:00
André Bargull
4494db10b7
Rename and update assignment early error tests
2017-05-02 12:09:25 -07:00
André Bargull
4d95f88c08
Rename and consolidate tests in keywords directory
2017-05-02 12:09:23 -07:00
André Bargull
bd7c280e92
Rename and consolidate tests in reserved-words directory
2017-05-02 12:09:22 -07:00
André Bargull
053d63fd0d
Rename and consolidate tests in future-reserved-words directory
2017-05-02 12:09:21 -07:00
Rick Waldron
376d9a57a7
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -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
666f0e920a
Add assert.throws.early
2017-05-01 12:29:52 -04:00
Leo Balter
0ad3d51fd9
Add an early error case for ({ async async })
2017-05-01 12:29:23 -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
Leo Balter
7bb4cd8f41
Merge pull request #1010 from rwaldron/dstr-binding_for-await-of
...
for-await-of: dstr-binding templates
2017-04-28 17:32:46 -04:00
Rick Waldron
5b2ffd2def
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-28 17:23:17 -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
Rick Waldron
c528486da3
Merge pull request #1000 from leobalter/remove-error
...
Avoid using $ERROR in test files
2017-04-26 15:02:45 -04:00
Leo Balter
d93e15662f
Generate Tests
2017-04-25 15:56:28 -04:00
Leo Balter
d6efc316ed
Update some tests to avoid $ERROR
2017-04-25 15:18:27 -04:00
Leo Balter
fa9aae7750
Use assert api instead of $ERROR
2017-04-24 15:31:52 -04:00
Leo Balter
a04ad1fcb5
Merge pull request #993 from leobalter/function-name
...
Update templates for function forms
2017-04-21 17:00:52 -04:00
Leo Balter
d74f58cddd
Generate tests
2017-04-21 15:26:46 -04:00
Leo Balter
20d496729d
Rename src/params to src/function-forms
...
The templates are being used for many tests reusing the same available function forms.
The format they are provided allow us to extend tests with cases for other tests relying
in the same formats.
2017-04-21 15:03:46 -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
Daniel Ehrenberg
f759df6322
Copyright attribution for test
2017-04-17 12:49:47 +02: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
Leo Balter
e43ce56105
Add Verify Property harness ( #979 )
2017-04-15 12:56:29 -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
Daniel Ehrenberg
89e15ce814
Test to block legacy hoisting for `function arguments() {}` ( #970 )
...
Ref https://github.com/tc39/ecma262/issues/815
Ref https://github.com/tc39/ecma262/pull/889
This is testing the current semantics of the specs, rather than the semantics in the proposed referenced issue.
2017-04-13 11:06:16 -04:00
Daniel Ehrenberg
799568fe26
Fix commit messages
2017-04-11 23:58:04 +02:00
Daniel Ehrenberg
dbfca4581d
Prohibit ASI between 'let' and 'yield'/'await'
...
Inspired by https://github.com/tc39/test262/pull/956
2017-04-11 22:34:43 +02:00
Jeff Walden
6fe9488ec7
Add tests for the behavior of |let <newline> await| in normal and async functions.
2017-04-11 22:21:48 +02: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
Caitlin Potter
53ab9ffd4e
Generate tests
2017-04-10 18:29:53 -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
André Bargull
faaa4685e4
Remove invalid async-flag from syntax error tests ( #959 )
2017-04-10 14:34:57 -04:00
Rick Waldron
3c79e9dbac
Merge pull request #953 from leobalter/syg-async-lineterm
...
Update cases for async arrow fns with a line terminator
2017-04-07 16:25:51 -04:00
Leo Balter
6030e4ed71
Update object literal expressions for readability
...
After @rwaldron's feedback:
The purpose of the `!` operator is to evaluate an UnaryExpression,
coerce the result to a boolean value and then return the negated
value of that operation. But that's not what you're trying to do at
all—you just want to evaluate the expression to the right of the
operator, nothing more, nothing less. In this specific case, you
don't even really care about the evaluation, the goal is write
valid (or invalid, as the case may be) syntax that is will be
parsed according to a specific grammar rule that requires some
operator to signal that the thing is an expression and not a Block
Statement.
2017-04-07 11:34:59 -04:00
Daniel Ehrenberg
20536eabe1
Generate tests
2017-04-06 19:44:14 -04:00
Daniel Ehrenberg
73c2d51734
Fix toFixed test to invoke toString() properly
2017-04-06 19:40:22 -04:00
Leo Balter
590d04edd2
Add info
2017-04-06 17:50:59 -04:00
Leo Balter
4941d46a28
Update cases for async fns with a line terminator
2017-04-06 16:06:42 -04:00
Shu-yu Guo
5038754462
Test for [no LineTerminator here] after 'async' for arrows and methods
2017-04-06 16:06:42 -04:00
Leo Balter
883db87a51
Generate tests
2017-04-06 15:33:33 -04:00
André Bargull
3291704eb2
Fix multiple test errors
...
Tests doesn't use async functionality and don't call $DONE, so remove
"async" flag:
- src/params/error/async-gen-named-func-expr.template
- test/language/expressions/async-generator/params-named-dflt-abrupt.js
- test/language/expressions/async-generator/params-named-dflt-ref-later.js
- test/language/expressions/async-generator/params-named-dflt-ref-self.js
Intl.PluralRules.prototype is no longer a Intl.Prototype instance:
- test/intl402/PluralRules/prototype/prototype.js
Intl.PluralRules throws an error when called as a function:
- test/intl402/PluralRules/undefined-newtarget-throws.js
Module namespace objects call OrdinaryDelete for symbol properties:
- test/language/module-code/namespace/internals/delete-non-exported.js
Async generators no longer retrieves "done" property twice:
- src/async-generators/yield-star-async-next.case
- src/async-generators/yield-star-async-return.case
- src/async-generators/yield-star-async-throw.case
Minor units of CLF is 4, so we need to test with maximumFractionDigits=3
to get an error:
- test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js
DateTimeFormat.prototype.formatToParts length property was changed from
0 to 1:
- test/intl402/DateTimeFormat/prototype/formatToParts/length.js
minimumSignificantDigits and maximumSignificantDigits properties are
only retrieved once:
- test/intl402/NumberFormat/11.1.1_32.js
2017-04-06 15:30:13 -04:00
Leo Balter
ef7b99970b
Merge branch 'littledan-tag-tests'
...
Closes #948
2017-04-06 14:10:48 -04:00
Leo Balter
f48a41caed
Generate tests
2017-04-06 12:36:50 -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
6330eccfc4
Add feature flags for various tests
2017-04-06 12:18:03 -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
Leo Balter
ce95292899
Merge pull request #939 from dilijev/typo
...
Corrected typo in annexB templates exsting->existing
2017-04-06 11:57:57 -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
Rick Waldron
818bb8d88f
Merge pull request #938 from leobalter/yield-star-abrupt-getiter
...
Add cases for abrupt completions in yield* in async generator - getIterator
2017-04-06 11:43:29 -04:00
Rick Waldron
d7f4f5f664
Merge pull request #937 from leobalter/yield-star
...
templates for yield star flow
2017-04-06 11:43:21 -04:00
Rick Waldron
7685eeac1f
Merge pull request #941 from leobalter/yield-star-next-abrupt
...
Add cases for abrupt completions in yield* in async generator - next
2017-04-06 11:42:54 -04:00
Rick Waldron
01ce88b588
Merge pull request #922 from leobalter/async-gen-templates-dstr-errors
...
Add async generator error templates for destructuring binding
2017-04-06 11:42:04 -04:00
Rick Waldron
b0e921ff45
Merge pull request #921 from leobalter/async-gen-templates-dstr
...
Add async generator templates for destructing binding
2017-04-06 11:41:27 -04:00
Doug Ilijev
5da6f981e9
Add escape-above-astral.js to cover escaping code units as encoded from extended unicode escape. ( #942 )
2017-03-28 20:09:16 -04:00
Leo Balter
70870dc239
Generate tests
2017-03-27 21:44:04 -04:00
Doug Ilijev
7bc56aaf2f
Regenerated tests.
2017-03-27 17:49:48 -07:00
Leo Balter
8f0fd88ad9
Generate tests
2017-03-27 20:41:11 -04:00
Leo Balter
088ef77000
Generate tests
2017-03-27 17:19:19 -04:00