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
Leo Balter
cf69b7f5d3
Merge pull request #917 from leobalter/913-rest-name
...
Add case for obj rest name equal to a property
2017-03-20 15:14:58 -04:00
Leonardo Balter
92ac53f210
Generate tests
2017-03-20 14:50:53 -04: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
e45b2ae532
Add tests for computed __proto__ property keys ( #916 )
...
Fixes #904
2017-03-16 12:16:27 -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
Leo Balter
e4bbdba105
Merge pull request #914 from leobalter/850-top-level
...
Avoid top level name and length bindings
2017-03-14 20:48:48 -04:00
Leonardo Balter
368d483490
Generate tests
2017-03-14 17:42:04 -04:00
Leonardo Balter
da22db06d1
Generate tests
2017-03-14 16:30:12 -04:00
Leonardo Balter
aa2c69960d
Generate tests
2017-03-14 15:13:10 -04:00
Leonardo Balter
7522a29f31
Generate tests
2017-03-14 14:58:33 -04:00
Leonardo Balter
c37a242057
Move tests for params trailing comma to the test gen tool
2017-03-14 14:58:32 -04:00
Leonardo Balter
c017b4280b
Generate tests
2017-03-14 13:30:35 -04:00
Rick Waldron
b0e9db8856
Remove invalid tests on parameters vs arguments list
...
Ref #822
2017-03-14 13:20:10 -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
2c1aed0db6
Fix duplicate function declarations ( #905 )
...
Fixes #771
2017-03-13 18:43:41 -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
6c20a250f2
Add references to fixed tests for NumberFormat operations ( #874 )
...
Ref #856
Ref #857
Ref tc39/ecma402#128
2017-03-13 10:47:30 -07:00
Leo Balter
763649d268
Fix runtime error tests previously marked as early errors ( #881 )
...
Fixes #877
Ref #872
2017-03-13 11:09:04 -04:00
Zirak
ed2bcdc0a9
Add missing test cases for set __proto__ ( #898 )
...
Fixes #887
2017-03-13 11:03:28 -04:00
Leo Balter
6ef9cef4a0
Generate tests for 16e66ece0
( #901 )
2017-03-13 11:01:26 -04:00
Leo Balter
471bde9162
Add descriptions for async-iter suspended execution tests ( #894 )
...
Fixes #889
2017-03-13 09:59:42 -04:00
Leo Balter
4108569dd7
Merge pull request #891 from leobalter/860-block-dft-params
...
Test for parameters with default expressions in Annex B FiB tests
2017-03-10 15:53:01 -05:00
Leonardo Balter
e54c471809
Generate tests
2017-03-09 10:30:09 -05:00
Leonardo Balter
0cc55bb44d
Generate tests
2017-03-06 16:25:14 -05:00
Leonardo Balter
874ce565ed
Generate tests
2017-03-06 16:05:38 -05:00
Leo Balter
da3898d707
Merge pull request #884 from jugglinmike/test-generation-indentation
...
Extend test generation tool
2017-03-06 14:45:40 -05:00
⭐caitp⭐
4914e47d0b
Add tests for Async Generator flow control ( #871 )
2017-03-06 10:48:13 -05:00
Mike Pennisi
f03c2c244c
Procedurally generate related tests
...
Take advantage of a recent extension to the test generation tool in
order to limit duplication.
2017-03-04 12:17:35 -05:00
Kevin Gibbons
975e54de17
Top-level `let undefined` is a runtime error, not an early error. ( #872 )
...
The error occurs in [GlobalDeclarationInstantiation](https://tc39.github.io/ecma262/#sec-globaldeclarationinstantiation ), which is runtime semantics.
2017-03-02 15:37:22 -05:00
Shu-yu Guo
e262dcd021
Test that @@unscopables is looked up once for inc/dec. ( #869 )
2017-03-02 13:15:56 -05:00
Leo Balter
ea45caf046
fix $.agent to $262.agent ( #876 )
...
Fixes #875
2017-03-02 12:00:16 -05:00
André Bargull
2871a9c8ed
Update tests for cyclic module dependencies through export* ( #868 )
...
Cyclic dependencies are no longer an error per
https://github.com/tc39/ecma262/pull/783 .
2017-03-01 16:59:53 -05:00
vabr-g
42ebb3a9ab
Add test for NumberFormat default minimumSignificantDigits ( #864 )
2017-03-01 16:39:57 -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
Viktor
58b326f0c4
fix for the wrong test of Intl.NumberFormat (ToRawPrecision) ( #857 )
...
1) (123.44500) == 123.444999999999993179
2) (123.44500).toPrecision(5) === "123.44" gives correct value in Chrome and Firefox;
Ref https://github.com/tc39/ecma402/issues/128
2017-03-01 16:14:33 -05:00
Viktor
9fd3b582c7
fix for the wrong test of Intl.NumberFormat (ToRawFixed) ( #856 )
...
Note:
12344501000000000487815444678311936 === 12344501000000000000000000000000000 for binary64 floating points;
Ref https://github.com/tc39/ecma402/issues/128
2017-03-01 16:14:00 -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
Mike Pennisi
37d5f8e5ef
Re-generate tests
2017-03-01 11:38:11 -05:00
Mike Pennisi
228851fbe4
Add tests for accessor names
2017-03-01 11:38:10 -05:00
arai-a
d93bee595e
Add some tests for execution order for yield* in async generator ( #844 )
2017-02-27 15:40:19 -08:00
André Bargull
878d382eb9
Fix typos in built-ins/TypedArray/prototype/copyWithin
2017-02-22 18:11:25 +01:00
André Bargull
76320ad18d
Update tests when Intl constructor is called as a function
...
https://github.com/tc39/ecma402/issues/57
https://github.com/tc39/ecma402/pull/84
2017-02-22 18:05:34 +01:00
André Bargull
fdccf26317
Update length property test for Intl.DateTimeFormat.prototype.format
...
Per https://github.com/tc39/ecma402/issues/76
2017-02-22 18:05:16 +01:00
André Bargull
7e94b8b7ac
Fix executor arguments validation in Promise subclass test
2017-02-22 18:05:08 +01:00
André Bargull
8a4abc2a00
Replace __proto__ with non-Annex B alternative
2017-02-22 18:04:59 +01:00
André Bargull
bb369e1e7c
Fix typo in TypedArray test with SharedArrayBuffers
2017-02-22 18:04:51 +01:00
André Bargull
c16359bc3c
Update tests for classes extending null
...
Per https://github.com/tc39/ecma262/pull/781
2017-02-22 18:04:43 +01:00
Caitlin Potter
098f9ca3de
Add tests for try/finally in async functions
2017-02-17 19:29:21 -05: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
littledan
e31b7c43b0
Test for case-insensitivity in invalid BCP 47 usage ( #836 )
...
This patch adds a regression test for a previous V8 bug reported originally at
https://bugs.chromium.org/p/v8/issues/detail?id=4215
2017-01-20 11:56:46 -08: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
Caitlin Potter
6391689a6b
Add tests for async generator function expressions
2017-01-19 14:50:15 -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
Zibi Braniecki
82c2ca0709
Add Intl.PluralRules tests ( #782 )
...
* Add Intl.PluralRules tests
* document the tests
2017-01-18 15:56:44 -08:00
Caio Lima
c2eacd956e
Adding test cases to validate property descriptors on cases of mapped arguments ( #815 )
2017-01-17 10:27:40 -05:00
Zibi Braniecki
28fc809f3e
Remove BYR currency code which has been removed from ISO 4217 ( #818 )
2017-01-09 14:27:23 -08:00
Michael Ficarra
9737f3704f
Function.prototype.toString no longer does line terminator normalisation ( #820 )
2017-01-09 14:25:02 -08:00
Adam Klein
4ff7e4342e
Fix test for instantiating a class extending null ( #813 )
...
The sameValue assertion should be that the [[Prototype]] is
equal to the class's prototype, not the constructor.
2016-12-28 17:18:19 -08:00
Kevin Gibbons
a73221eb8f
mark namespace object toStringTag as non-configurable ( #811 )
2016-12-28 14:16:24 -08:00
Adam Klein
b5edd1256c
Add test for setting a module namespace object's prototype to null ( #805 )
...
The behavior changed from returning false to true in
https://github.com/tc39/ecma262/commit/13906140a
2016-12-28 10:58:15 -08:00
Kevin Gibbons
03453d6098
Remove tests for module namespace iterator ( #810 )
2016-12-28 10:57:46 -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
Kevin Gibbons
3b9953d65c
remove last usage of arguments.caller ( #812 )
2016-12-28 10:54:02 -08:00
jungshik
6a0f1189eb
Drop 3 tests testing an obsolete Ecma402 v1 spec ( #807 )
...
The following three tests check an obsolete provision in Ecma 402
v1 regarding Intl.{Collator,DateTimeFormat,NumberFormat} constructor
called as a function.
Collator/10.1.2.1_4.js
DateTimeFormat/12.1.2.1_4.js
NumberFormat/11.1.2.1_4.js
2016-12-21 11:11:39 -08:00
Kevin Gibbons
fcc9e07265
Add test for extending a constructor with null .prototype ( #806 )
2016-12-21 01:30:06 -05:00
jungshik
db3aa4ca4f
Replace islamicc with islamic-umalqura in getCanonicalLocales/main.js (Intl402) ( #789 )
...
* Replace islamicc with islamic-umalqura
Per discussion in #743 , it's implementation-dependent how ismalicc is
canonicalized. However, 'islamic-umalqura' should be treated the same
way by all implementations.
* Remove ar-ma-u-ca-islamic-umalqura per discussion
2016-12-19 11:34:35 -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
3ed2c78600
Avoid writing to top-level vars named "top", for browser compat ( #794 )
...
The HTML spec requires browsers define a non-configurable property
of the global (window) object named "top". This makes it
impossible for a browser to successfully run a test in strict mode
if said test attempts to write to a global variable named "top".
2016-11-22 12:02:40 -05:00
Kevin Gibbons
c779cba592
Remove tests for arguments.caller ( #797 )
2016-11-22 11:59:37 -05:00
Michael Ficarra
a4a1dd551b
fix expected raw value for invalid escape sequences in tagged templates ( #800 )
2016-11-22 11:45:39 -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
Josh Wolfe
4fd91d8904
fix incorrect tests for trailing commas ( #787 )
2016-11-11 09:44:38 -08:00