Commit Graph

1985 Commits

Author SHA1 Message Date
Leo Balter 1e35ec9fed
Fix case sensitive template name 2017-03-27 12:12:32 -04:00
Daniel Ehrenberg a9d9ab1a51
Add tests for some NumberFormat options edge cases
Closes #888

These tests are regression tests for V8 failures at top of tree,
https://bugs.chromium.org/p/v8/issues/detail?id=6015
https://bugs.chromium.org/p/v8/issues/detail?id=6016

Neither issue is present in JSC or SpiderMonkey. They are fixed
by the V8 patch
https://codereview.chromium.org/2717613005
2017-03-23 11:50:33 -07: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
Brian Terlson 507d034c5a Add Leo to the maintainers list 2017-03-22 10:14:18 -07:00
Daniel Ehrenberg b86b7031b8 Rename files per review 2017-03-21 18:04:50 +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
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
Leonardo Balter 30c280a1f9
Add case for obj rest name equal to a property
Fixes #913
2017-03-20 14:50:53 -04:00
Leonardo Balter 585f48389f
fix typo 2017-03-20 14:50:45 -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
Leo Balter f17cd6d8d7 Merge pull request #911 from leobalter/822-missing-args-length
Update params and arguments trailing comma tests
2017-03-14 17:47:24 -04:00
Leonardo Balter 368d483490
Generate tests 2017-03-14 17:42:04 -04:00
Leonardo Balter 659d82ded4
Rename top level 'length' bindings from test generation cases
Ref #850
2017-03-14 17:42:03 -04:00
Leonardo Balter da22db06d1
Generate tests 2017-03-14 16:30:12 -04:00
Leonardo Balter 41370bcb99
Create tests for trailing comma on arguments list 2017-03-14 16:27:56 -04:00
Leonardo Balter aa2c69960d
Generate tests 2017-03-14 15:13:10 -04:00
Leonardo Balter cb85912b13
fix location for features 2017-03-14 15:11:05 -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
Leonardo Balter abaf554c2d
prefix params cases to dflt- while templates are not set to dlft anymore 2017-03-14 13:20:37 -04:00
Leonardo Balter ae1455c062
mv src/dflt-params to src/params folder 2017-03-14 13:20:23 -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 866d7f8d8e Improve isEnumerable check with a for-in loop for string names (#880)
Ref https://github.com/tc39/test262/pull/879#discussion_r104128520
2017-03-13 10:48:33 -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
Caio Lima 16e66ece0c Initial set for Object Spread feature (#890) 2017-03-13 10:21: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
Leo Balter 1327925daf Merge pull request #892 from leobalter/generator-spread
Add tests for object spread on yield value
2017-03-09 10:30:58 -05:00
Leonardo Balter e54c471809
Generate tests 2017-03-09 10:30:09 -05:00
Leonardo Balter 77fbf1cada
Additional coverage for computed yield values
Ref #865
Ref https://github.com/tc39/test262/pull/890#issuecomment-284600429
2017-03-09 10:23:08 -05:00
Leonardo Balter 0cc55bb44d
Generate tests 2017-03-06 16:25:14 -05:00
Caio Lima 0200c63396
Implementing test cases for object rest deconstruction
Closes #867
Ref #865
2017-03-06 16:24:35 -05:00
Leonardo Balter 874ce565ed
Generate tests 2017-03-06 16:05:38 -05:00