153 Commits

Author SHA1 Message Date
Meir Blachman
f7322cca7a use $ERROR instead of throwing in 15.2.3.7-2-18.js 2020-06-24 12:25:30 -04:00
Alexey Shvayka
0fcc51c9e2 Update copyright for "length" test 2020-06-03 14:03:21 -04:00
Alexey Shvayka
3a4bd7d050 Add symbol primitive test 2020-06-03 14:03:21 -04:00
Alexey Shvayka
38050f0cdd Add string primitive test 2020-06-03 14:03:21 -04:00
Alexey Shvayka
f4b30daf12 Rename & improve "length" test 2020-06-03 14:03:21 -04:00
Alexey Shvayka
1fccea4471 Object.prototype.hasOwnProperty: Test coercion order 2020-05-06 11:56:49 -04:00
Alexey Shvayka
8a3fe5318d Merge "length" tests & refactor using propertyHelper.js harness 2020-05-06 11:56:49 -04:00
Alexey Shvayka
1c3d1e3026 Object.prototype.toString: Improve revoked Proxy coverage 2020-05-06 11:51:46 -04:00
Alexey Shvayka
c9ce3be95d Add Object.seal test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
feaa555fc3 Add Object.isSealed test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
a65d0bfb42 Add Object.isFrozen test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
521446b36b Add Object.freeze test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
07ff2ffa4a Add Object.defineProperties test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
56cbc61e42 Add Object.getOwnPropertyDescriptors test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
2183fa7e4e Add Object.assign test 2020-04-25 18:45:48 -04:00
Alexey Shvayka
eca34edd7e Drop "the" and align license headers 2020-04-23 10:48:16 -04:00
Alexey Shvayka
b273affa2c Add Object.values test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
5874ca46fc Add Object.keys test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
c370276c65 Add Object.getOwnPropertySymbols test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
62c9541be4 Add Object.getOwnPropertyNames test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
021b8f2b33 Add Object.getOwnPropertyDescriptors test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
b94190e387 Add Object.entries test 2020-03-23 14:50:33 -04:00
Alexey Shvayka
4383f2c6ba Add Object.{freeze,preventExtensions,seal} abrupt completion tests (#2468)
* Add Object.freeze test

* Add Object.preventExtensions test

* Add Object.seal test
2020-01-14 11:31:45 -05:00
Gus Caplan
502cc20010 fix delete test, add error tests, fix lint (#2453) 2019-12-21 16:57:41 -05:00
Alexey Shvayka
19fd4bea79 Improve Object.prototype.isPrototypeOf coverage (#2446) 2019-12-18 21:33:31 -05:00
Kevin Gibbons
cadd47aa5f Add test for for-in order (#2432)
* Add EnumerateObjectProperties tests for builtins which use it

* Add tests for EnumerateObjectProperties for for-in

* Add feature flag for for-in-order
2019-12-18 11:25:20 -05:00
Alexey Shvayka
da9612db98 Add some more Proxy/ownKeys invariants tests (#2413)
* Defer making [[ProxyTarget]] non-extensible

* Fix typo in method name

* Add last Object.keys with Proxy invariant test

* Add Object.getOwnPropertySymbols with Proxy invariants tests

* Add Object.getOwnPropertyNames with Proxy invariants tests

* Replace "es6id" with "esid" in Object.getOwnPropertySymbols tests
2019-11-11 15:02:07 -05:00
Alexey Shvayka
1aac32e2f8 Improve Proxy/ownKeys invariants coverage (#2384)
* Add non-configurable invariant test

* Add non-extensible invariant test
2019-10-08 14:54:46 -04:00
Leo Balter
e2903e2648
Merge pull request #2366 from bocoup/unnecessary-includes
Remove unnecessary "includes" directives
2019-09-27 16:46:22 -04:00
Leo Balter
83d9f750c9
Merge pull request #2376 from bocoup/ud-coverage
Improve coverage
2019-09-27 16:30:13 -04:00
jugglinmike
479ea0ec0b Avoid false positive (#2375)
Prior to this patch, the modified test would pass if no exception was
produced. Use the `assert.throws` utility function to concisely express
the expectation more completely.
2019-09-27 16:25:07 -04:00
Mike Pennisi
9cd62ffbd7 Improve coverage: ctor props of the global object
Prior to this commit, the descriptors of the constructor properties of
the global object were verified inconsistently, many independent
assertions occured in the same file, and that file test was poorly
located.

Restructure the relevant tests to improve coverage, follow convention,
and promote discoverability.
2019-09-27 15:39:10 -04:00
Mike Pennisi
1e4e524251 Update tests to use APIs defined by included files
The `$DETACHBUFFER` function is the preferred mechanism for detaching
array buffers.

Likewise, `verifyNotWritable` is the preferred mechanism for asserting
lack of writability.
2019-09-25 13:59:24 -04:00
Alexey Shvayka
ef7fd2bc27 Add "proto-from-ctor-realm" tests for Intl constructors (#2334)
* Rename "Object/proto-from-ctor.js" test

* Add missing "Symbol" features

* Add Intl.Collator test

* Add Intl.DateTimeFormat test

* Add Intl.NumberFormat test

* Add Intl.PluralRules test
2019-09-11 17:22:21 -03:00
Leo Balter
5d84854f27
Avoid usage of Object.keys when asserting order of returned values (#2320)
Fixes #2226
2019-09-04 11:38:18 -03:00
Leo Balter
ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Gus Caplan
2fb39cb4e9 add missing feature (#2250) 2019-07-22 12:46:59 -04:00
Leo Balter
d02fe7db38
Add coverage for non object values of the Properties arg of Object.create (#2238)
Fixes #2237
2019-07-15 16:17:03 -04:00
Alexey Shvayka
19b5a5a635 Improve Object#toString coverage (#2202)
* Move proxies with non-string toStringTag to separate file

* Add coverage for async proxy functions

* Add coverage for built-ins with non-string toStringTag

* Move async proxy function tests to new file
2019-07-10 14:00:04 -04:00
Gus Caplan
ceaebf7058 fix built-ins/Object/subclass-object-arg (#2200) 2019-06-19 15:48:53 -04:00
Alexey Shvayka
430ee14d90 Add Object subclass test (#2177) 2019-06-12 14:11:16 -04:00
Ross Kirsling
d0f57bff72 Ensure test file YAML blocks don't have a trailing space. (#2018) 2019-01-07 11:40:39 -02:00
Peter Marshall
b3efcd2f3f Consistently use spaces in features lists (#2000) 2018-12-17 17:00:04 -02:00
⭐caitp⭐
16ef6ad10d Get rid of the leading empty line in info block (#1993)
This makes v8's _monkeyYaml happy --- without it, the info block never ends, and we fail to parse the `features` key.

An explicit indentation marker isn't used because monkeyYaml doesn't supported it, and adding it might slightly slow things down.

Using PyYAML instead was considered, but after trying it, I don't think it looks viable. [simple test cases](https://gist.github.com/caitp/4a59a67f671907c11051a1b7bd5fdaae)
2018-12-15 05:40:37 -05:00
Rick Waldron
628faa5e06 Eliminate false positives: Object.fromEntries 2018-11-30 09:31:54 -05:00
Adrian Heine né Lang
0475c127c4 Fix some generators feature flags (#1933) 2018-11-07 17:51:23 -05:00
Rick Waldron
ff475fce11 Object.fromEntries: use verifyProperty; add specification details 2018-08-13 15:15:02 -04:00
Rick Waldron
55ffeaf5cf Object.fromEntries: fix file names 2018-08-13 12:24:57 -04:00
Kevin Gibbons
60b9467630 Two more simple tests 2018-08-13 10:25:09 -04:00
Kevin Gibbons
7f694d4718 Object.fromEntries: add basic tests 2018-08-13 10:25:09 -04:00