summaryrefslogtreecommitdiff
path: root/test/built-ins/Object
Commit message (Collapse)AuthorAgeFilesLines
* test/built-ins/Object/prototype/toString/*.js: clean up and extended fixes ↵Rick Waldron2018-03-0735-272/+425
| | | | | | from gh-1473 (#1475)
* Fix yaml consistencyLeo Balter2018-03-0611-22/+33
|
* Remove whitespace between Literal and BigIntLiteralSuffix (#1452)Sathya Gunasekaran2018-02-221-1/+1
|
* built-ins/Object/*: make all indentation consistent (depth & character) (#1432)Rick Waldron2018-02-152862-22978/+24187
|
* Revert "js-beautify: make all indentation consistent (depth & character) ↵André Bargull2018-02-092862-24187/+22978
| | | | | (#1409)" (#1412) This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
* js-beautify: make all indentation consistent (depth & character) (#1409)Rick Waldron2018-02-092862-22978/+24187
|
* Fix: various lint fixesRick Waldron2018-01-111-2/+2
|
* Fix: various lint fixesRick Waldron2018-01-104-4/+4
|
* Frontmatter: fixup "info: >" to "info: |"Rick Waldron2018-01-05185-185/+185
|
* Fix multiple issues in nan-equivalence.js test caseAndré Bargull2017-11-011-17/+26
|
* Add cross-realm featureLeo Balter2017-09-221-1/+1
|
* Add missing Symbol.toStringTag feature flagsLeo Balter2017-09-081-1/+1
|
* Add missing Symbol features flagsLeo Balter2017-09-0725-0/+25
|
* Remove duplicate property keys from getOwnPropertyDescriptorsAndré Bargull2017-09-051-38/+0
| | | | Because Proxies no longer allow to return duplicate property keys.
* add BigInt testsRobin Templeton2017-08-242-0/+27
|
* Remove more unnecessary testsLeo Balter2017-05-1713-536/+0
| | | | | | | 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.
* Introduce automated validation for test format (#994)jugglinmike2017-05-011-2/+2
| | | | | | | 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.
* Add tests for observable [[GetOwnProperty]] ops in EnumerableOwnProperties ↵⭐caitp⭐2017-04-271-0/+145
| | | | (#1003)
* Remove execute bit from files (#976)André Bargull2017-04-1331-0/+0
|
* Merge pull request #949 from rwaldron/755Leo Balter2017-04-062-0/+65
|\ | | | | Fixes for gh-755, per reviews
| * Move proxy function proxy tests into own fileRick Waldron2017-04-062-36/+45
| | | | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
| * Update the toString/proxy.js to test stringifing functionsKeith Miller2016-08-301-1/+57
| |
* | Rename top level 'name' and 'length' bindingsLeonardo Balter2017-03-141-3/+3
| | | | | | | | Fix 850
* | Rename $ => $262. Fixes gh-802 (#823)Rick Waldron2017-03-011-1/+1
| | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* | Add tests for known violation of invariants (#841)Claude Pache2017-03-014-0/+116
| | | | | | | | | | | | | | | | 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
* | Test Symbol.toStringTag overrides on primitive wrapper prototypes. Closes ↵Rick Waldron2017-01-202-0/+42
| | | | | | | | | | gh-809 (#837) Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* | Add tests for realm interactions (#688)jugglinmike2016-10-241-0/+28
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests for prototype realm inference * Add tests for miscellaneous realm concerns * Add tests for realm of spec-created Errors In some cases, Error objects produced by the specification are observable from ECMAScript code. Among these cases, some are further differentiated in that they occur outside of any built-in function and may be triggered through syntactic production directly. The current realm record is commonly interpreted incorrectly under these circumstances. Add tests asserting that the expected realm record is used when constructing such Error objects. * Add tests for realm use in ArraySpeciesCreate * Add tests for function realm retrieval * Add tests for cross-realm behaviors of Symbols * Add tests for GetValue and PutValue * Add tests for realm of spec-created Arrays In some cases, Arrays produced by CreateArrayFromList are observable from ECMAScript code. Among these cases, two occur outside of any built-in function and may be triggered through syntactic production directly. The current realm record is commonly interpreted incorrectly under these circumstances. Add tests asserting that the expected realm record is used when constructing arrays. * Add test for spec-created object * fixup! Add tests for realm of spec-created Errors * fixup! Add tests for realm of spec-created Errors * fixup! Add tests for prototype realm inference * fixup! Add tests for miscellaneous realm concerns
* `Object.getOwnPropertyDescriptors`: add test to ensure undefined descriptors ↵Jordan Harband2016-08-012-1/+40
| | | | | are not added. (#662) Per https://github.com/tc39/ecma262/pull/593
* Update test for distinct NaN replacement on DefineOwnPropertyLeonardo Balter2016-07-061-8/+23
| | | | | | Fixes gh-683 Ref gh-648 Ref tc39/ecma262#353
* Improve assertions comparing values to NaN (#690)Leo Balter2016-07-013-5/+3
| | | The global isNaN is not precise at all, and Number.isNaN is an ES6 feature that makes it preferrable to use assert's sameValue for NaN values, as it handles it internally using the comparison.
* Update esid for Object.getOwnPropertyDescriptorsLeonardo Balter2016-06-1515-15/+15
|
* Add tests for usage of IsArray (#667)jugglinmike2016-06-102-0/+72
|
* Add test for NaN in OrdinaryDefineOwnProperty (#648)jugglinmike2016-06-081-0/+63
| | | | These semantics are currently contested, but the test reflects the intended behavior of the latest version of the specification.
* Reduce reliance on `fnGlobalObject.js`Mike Pennisi2016-04-2562-164/+110
| | | | | | | | | | This harness function is not necessary in the majority of cases in which it is used. Remove its usage to simplify tests and decrease the amount of domain-specific knowledge necessary to contribute to the test suite. Persist the harness function itself for use by future tests for ES2015 modules (such a helper is necessary for tests that are interpreted as module code).
* Fix test bugsAndré Bargull2016-02-232-3/+4
|
* s/id/esidLeonardo Balter2016-02-2253-53/+53
| | | | Fixes #477
* Create `proxyTrapsHelper` to throw on all traps by default.Jordan Harband2016-02-133-42/+15
|
* s/esid/id/gJordan Harband2016-02-0115-15/+15
|
* Add test with duplicate keys.Jordan Harband2016-02-011-0/+31
| | | Per https://github.com/tc39/test262/pull/484#issuecomment-178145781
* Review feedback.Jordan Harband2016-02-0114-21/+36
|
* Add Object.getOwnPropertyDescriptors tests.Jordan Harband2016-02-0113-0/+307
|
* Replace es7id tags with idLeonardo Balter2016-02-1234-34/+34
|
* Add tests for Object.prototype extensibility and its immutable prototypeLeonardo Balter2016-02-124-0/+139
| | | | | | | Object.prototype is extensible and an immutable prototype exotic object, it's [[Prototype]] value is null Ref tc39/ecma262#308
* Fix case sentitive error on test/built-ins/Object folderLeonardo Balter2016-01-2932-0/+648
| | | | Fixes gh-482
* Add missing tests for "length" and "name" properties of built-in functionsAndré Bargull2016-01-1521-0/+549
| | | | Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
* Add Proxy tests to ensure observable semantics are maintainedJordan Harband2015-12-142-0/+96
|
* Tests for changes introduced in ES2015 (Annex E)André Bargull2015-09-0710-0/+315
| | | | | | | | | | | | | | - String case functions iterate over code points - Has called before Get in Array.p.reverse - Add test for web-compat Array.p.splice behaviour; Plus missing test for no arguments case - ToObject no longer applied to this-value in Array.p.toLocaleString - ToObject no longer applied to this-value in Object.p.toLocaleString - Add tests for Object.p.propertyIsEnumerable and symbol property keys - Add tests for Object.p.hasOwnProperty and symbol property keys - Test property descriptor attributes of message property - Tests for RegExp constructor checks - Date constructor when called with date object - TimeClip never returns negative zero
* Merge pull request #415 from anba/remove-runTestCase-finallyRick Waldron2015-09-04215-2153/+599
|\ | | | | Replace runTestCase when used with try-finally
| * Replace runTestCase with assert, try-finally, [test/built-ins/Object]André Bargull2015-08-13215-2153/+599
| |
* | Merge branch 'remove-runTestCase-builtins-other' of ↵Rick Waldron2015-09-0489-755/+281
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/anba/test262 into anba-remove-runTestCase-builtins-other # By André Bargull # Via André Bargull * 'remove-runTestCase-builtins-other' of https://github.com/anba/test262: Replace runTestCase with assert helpers, rest [test/built-ins] Replace runTestCase with assert helpers [test/built-ins] Conflicts: test/built-ins/Array/from/S22.1.2.1_T1.js test/built-ins/Array/from/S22.1.2.1_T2.js test/built-ins/Array/from/S22.1.2.1_T3.js