Commit Graph

2021 Commits

Author SHA1 Message Date
Josh Wolfe 5730f10114 generate some type coercion tests 2017-12-21 16:40:18 -05:00
Rick Waldron 06aaef8ecd Restore & update existing static class field cases/templates 2017-12-21 16:38:08 -05:00
Rick Waldron 53f847b1bc Remove static private/public fields unsupported tests. 2017-12-21 16:37:14 -05:00
Daniel Ehrenberg dc4db968f2 Add tests that public and private static fields are unsupported 2017-12-21 15:21:04 -05:00
Daniel Ehrenberg 2e042d9f9d Regenerate tests 2017-12-21 15:21:04 -05:00
Daniel Ehrenberg d50c33a5b3 Remove static fields tests
Static fields were broken up from instance fields and demoted to
Stage 2 in the November 2017 TC39 meeting. This patch removes the
test262 tests which test static class fields.
2017-12-21 15:21:04 -05:00
Daniel Ehrenberg cb84893f93 Add a test that BigInt does not have a parseInt function 2017-12-21 15:16:22 -05:00
Daniel Ehrenberg 422f91e8fd Remove BigInt.parseInt tests
BigInt.parseInt will be removed in
https://github.com/tc39/proposal-bigint/pull/101

This patch removes the associated test262 tests.
2017-12-21 15:16:22 -05:00
Mathias Bynens 7446e885e9 [regexp-named-groups] Expand tests for `groups` property
The `groups` property must be created unconditionally. https://github.com/tc39/proposal-regexp-named-groups/pull/40
2017-12-20 15:33:37 -05:00
Rick Waldron 642d88377f
Merge pull request #1375 from jugglinmike/refactor-for-parsers-assignment
Refactor AssignmentExpression tests for parsers
2017-12-19 15:46:31 -05:00
Rick Waldron a801bdf786 Fix frontmatter 2017-12-19 15:42:57 -05:00
André Bargull 204afb7ba6 Add tests when continue triggers IteratorClose 2017-12-19 15:42:57 -05:00
André Bargull df1e5e7d44 Add more completion value tests for try-statements 2017-12-19 15:42:56 -05:00
André Bargull 7f96cb10c1 Add tests for accessing Infinity on detached typed arrays 2017-12-19 15:42:56 -05:00
André Bargull 6b8bd307d2 Test other-id-start/continue and vertical tilde in identifiers 2017-12-19 15:42:56 -05:00
André Bargull 5a4c067831 Test expression at the rhs of dot-MemberExpression is an IdentifierName 2017-12-19 15:42:56 -05:00
André Bargull f4151fdbc0 Add tests for TCO with eval and cross-realm cases 2017-12-19 15:42:56 -05:00
André Bargull d231b90ea8 Add tests for direct-eval calls with spread expressions 2017-12-19 15:42:56 -05:00
André Bargull 3ce00cf5e3 Add tests for uninitialized bindings when accessed through Object methods and for-in 2017-12-19 15:42:56 -05:00
André Bargull 9f39d988e1 Unicode extension subtags correctly detected in Intl.Collator 2017-12-19 15:42:56 -05:00
André Bargull 1abd6c6593 Extend coverage for Intl.getCanonicalLocales 2017-12-19 15:42:56 -05:00
André Bargull 9b54779018 Add tests for recompilation in @@split 2017-12-19 15:42:56 -05:00
André Bargull eecf0fd06b Add tests for html-comments in Function constructor call 2017-12-19 15:42:56 -05:00
Mike Pennisi 025b44f38c Refactor AssignmentExpression tests for parsers
A number of tests for the parsing of the AssignmentExpression production
were expressed using `eval`. This made the tests more complex than
necessary, and also prevented the tests from providing value to
ECMAScript parsers.

Remove the use of `eval` in the relevant tests and instead express the
expectations with literal source text. Remove superfluous "onlyStrict"
restriction from tests by declaring the probe binding prior to
assignment.
2017-12-10 15:59:11 -05:00
Daniel Ehrenberg c48cd085ae Remove some spurious blank lines
A few BigInt tests had a blank line in an inconvenient place which
breaks an old, possibly incorrect YAML parser used by V8's test262
test automation. The best fix is to deploy a new YAML parser, but
in the short term, this patch deletes the blank lines and lets
V8 understand the feature flags below. Related: #1370
2017-12-08 16:56:51 +01:00
André Bargull 8311965251 Fix copy-paste bugs in BigInt tests (#1361) 2017-12-01 14:16:43 -05:00
Leo Balter 6f8c89dfd1
Update class public fields tags in non-generated test files 2017-11-28 13:02:21 -05:00
Leo Balter a488271931
Update class fields tags in non-generated test files 2017-11-28 12:59:27 -05:00
Leo Balter d142f75468
Regenerate tests 2017-11-28 12:49:12 -05:00
Leo Balter 77c70a514d
Merge pull request #1344 from leobalter/class-fields-same-name
Class fields with the same name
2017-11-28 10:35:27 -05:00
Isiah Meadows 6ca3634d1b Broken error message in test (#1358)
Fixes #1355
2017-11-28 10:34:04 -05:00
Justin Ridgewell da61938f8f Fix several Decode tests (#1357)
The tests are explicitly for bad hex chars at certain indexes, and that
rogue `%` was giving false positives.
2017-11-27 12:28:17 -05:00
Daniel Ehrenberg 1702336a77 Test change in PluralRules default options semantics (#1350)
The change is done in the following patch, where default options
have a null prototype. This matches what other Intl objects have.
1abe8af440
2017-11-21 14:13:44 -05:00
Leo Balter fe1b7e2a74
Merge pull request #1349 from caiolima/big-int-constructor-obj
Added missing cases into BigIntConstructor with String parameters
2017-11-21 14:11:42 -05:00
Leo Balter 168cc4c638
Improve Array#sort tests for verifying non callable comparefn (#1352)
Fix #1345
2017-11-21 11:41:18 -05:00
Rick Waldron 3981242226 Let paramVarEnv be NewDeclarativeEnvironment(originalEnv). (#1348)
Originally discovered by Cait Potter (@caitp), reported in irc.mozilla.org#jslang
2017-11-20 15:05:20 -05:00
Caio Lima dd72bf0d26 Added case when Object has valueOf and toString 2017-11-17 00:22:13 -02:00
Caio Lima 349baebc01 Added missing cases into BigIntConstructor and String parameters 2017-11-17 00:11:27 -02:00
Leo Balter 5b7b007af5
Generate tests 2017-11-15 14:33:23 -05:00
Leo Balter 076ecc38c6
Fix bugs reported in #1338 (#1339)
* Accessing `ta[0]` throws a TypeError.

* Fix array indices starting at 0 and property references

* Fix classfields templates for properly checking static propnames.

* Generate tests

* `assert.equal` is not defined

* Add missing includes

* Generate tests

* typo s/Avalue/42/

* fix whitespace

* Add missing var for strict mode

* Expand generated class fields tests for forbidden computed property name values

Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243

* derived classes have access to private names in base classes, if private names are in scope
2017-11-10 15:06:00 -05:00
Leo Balter c4e3d12597
Merge pull request #1335 from bocoup/classfields-alg
classfields: Tests for modified algorithms and Private Names
2017-11-06 10:11:24 -05:00
Jeff Walden 5c8fa59c4c Add tests for setting/defining an element of a typed array to a value, where converting that value to the typed array element type detaches the buffer underlying the typed array. (#1336) 2017-11-03 15:54:17 -04:00
Valerie R Young bef77dc144 classfields: PrivateFieldSet and PrivateFieldGet 2017-11-03 15:43:44 -04:00
Valerie R Young a6e9a4ea1a classfields: PrivateFieldAdd TypeError test 2017-11-03 15:43:44 -04:00
Valerie R Young ad12c4f5ad classfields: field definition abrupt completion tests 2017-11-03 15:43:44 -04:00
Rick Waldron 4b4c44cb51 fixup: swap actual and expected in test/built-ins/Promise/prototype/finally/species-symbol.js (#1333) 2017-11-03 15:34:22 -04:00
Leo Balter 06091cb6fd
Merge pull request #1319 from bocoup/classfields-dupsdeletes
classfields: add tests duplicate private fields and deleting private fields
2017-11-03 15:19:34 -04:00
Valerie R Young 1bbedf4b02
regenerate files 2017-11-03 14:52:47 -04:00
Valerie R Young dd371194fe
class fields: add ASI tests 2017-11-03 14:52:46 -04:00
Leo Balter ce203360b1
Merge pull request #1323 from bocoup/classfields-scope
classfields: add early error tests for privatename references
2017-11-03 14:12:10 -04:00
Leo Balter 20a2572ba9
Merge pull request #1309 from bocoup/classfields-stringname
classfields: add tests for forbidden public/private propertynames
2017-11-03 14:02:27 -04:00
Leo Balter 27e2c28d13
Merge pull request #1334 from anba/test-issues
Fix multiple test issues
2017-11-01 13:42:58 -04:00
André Bargull 1f57fe412c Regenerate tests 2017-11-01 08:23:44 -07:00
André Bargull 2d6a356699 Move incomplete_hex_unicode_escape.js to annexB
Fixes #1313
2017-11-01 08:23:43 -07:00
André Bargull b3fc8482fb Remove empty line after | to fix monkeyYaml parsing issue
Fixes #1312
2017-11-01 08:23:43 -07:00
André Bargull 26b3015f33 Fix expected value for BigInt.prototype.toString.length
Fixes #1306
2017-11-01 08:23:42 -07:00
André Bargull 32b1984275 Fix multiple issues in nan-equivalence.js test case 2017-11-01 08:23:42 -07:00
André Bargull 6c8698acac Update test to not rely on throwing a Test262Error
Only this test relied on $ERROR throwing a catchable Test262Error.

This change allows test environments to provide their on $ERROR function for better error reporting.
2017-11-01 07:54:04 -07:00
Rick Waldron 2659c88820
Merge pull request #1329 from gsathya/promise-finally-species-constructor
Promise.p.finally: test SpeciesConstructor and Symbol.species lookup
2017-11-01 10:46:25 -04:00
Rick Waldron 350d2c70bf
Merge pull request #1302 from rwaldron/bigint-fixups
Bigint fixups
2017-11-01 09:20:23 -04:00
Rick Waldron 1f1d2d275d
Merge pull request #1317 from cxielarko/getbiguint64
getBigUint64 tests
2017-11-01 09:01:36 -04:00
Rick Waldron bbdf494500
Merge pull request #1316 from cxielarko/setbigint64
setBigInt64 tests
2017-11-01 08:58:44 -04:00
Valerie R Young 4828ce08a3 regenerate files 2017-10-31 14:49:26 -04:00
Valerie 9d7378cdba
Merge pull request #1325 from leobalter/fix-1303
fix typos in class field templates
2017-10-30 14:11:45 -04:00
Leo Balter 21b7e4a7bd
Add missing parameter and reorder actual, expected assertion parameters (#1326) 2017-10-30 11:22:13 -04:00
Valerie R Young 7572c0c36b Classfields: simple success case for nested classes private name reference 2017-10-29 20:46:09 -04:00
Valerie R Young 54f4d02aa6 Classfields: simple early errors test for privatename references in scripts 2017-10-29 20:46:09 -04:00
Valerie R Young 2664e17e1d generated test files 2017-10-29 20:11:12 -04:00
Sathya Gunasekaran a392f6ced8 Promise.p.finally: test SpeciesConstructor and Symbol.species lookup 2017-10-28 14:01:13 -07:00
Valerie R Young ea4c8fc95c classfields: add tests for forbidden privatenames 2017-10-27 17:40:42 -04:00
Leo Balter 88881301d7
Regenerate tests 2017-10-27 15:45:42 -04:00
Leo Balter f8456c6dac
s/assertEquals/assert.sameValue/g (#1324)
Ref f1602088e6 (commitcomment-25237057)
2017-10-27 12:20:34 -04:00
Leo Balter fafd465454
Merge pull request #1303 from bocoup/classfields
classfields: eval early errors
2017-10-27 12:03:18 -04:00
Rick Waldron f1602088e6 Merge pull request #1320 from littledan/bigint-tostringtag
BigInt: Add test for BigInt.prototype[Symbol.toStringTag]
2017-10-27 11:44:19 -04:00
Leo Balter b8d1a29f2d
Re-generate tests 2017-10-26 19:04:57 -04:00
Leo Balter f8f5a7a1e7
Add missing generators flags 2017-10-26 19:04:57 -04:00
Rick Waldron e38587ec2c Merge pull request #1315 from cxielarko/bigint-ta-2
BigInt64Array/BigUint64Array
2017-10-26 11:38:59 -04:00
Rick Waldron 3bab611979 Merge pull request #1314 from thejoshwolfe/bitshift
BigInt bitshift operators
2017-10-26 11:31:36 -04:00
Rick Waldron 92ff689d07 Merge pull request #1311 from mathiasbynens/p
RegExp property escapes: test Extended_Pictographic
2017-10-26 11:27:42 -04:00
Rick Waldron cfdf7b1fd4 Merge pull request #1291 from rwaldron/typeof-fixups
typeof fixups
2017-10-26 11:26:31 -04:00
Rick Waldron af2e7767ff Merge pull request #1300 from thejoshwolfe/bitwise-infix
BigInt bitwise and, or, xor
2017-10-26 11:25:44 -04:00
Valerie R Young a9769d0854 regenerate test files 2017-10-26 10:10:57 -04:00
Daniel Ehrenberg d88d1fb2dd BigInt: Add test for BigInt.prototype[Symbol.toStringTag]
Tests the fix for https://github.com/tc39/proposal-bigint/issues/92
2017-10-26 15:06:46 +02:00
Valerie R Young c39eeb9276 classfields: add tests for duplicate privatenames 2017-10-25 10:37:13 -04:00
Robin Templeton f9e93bd61c update frontmatter 2017-10-24 12:36:13 -04:00
Robin Templeton bd63b02e27 remove unnecessary include 2017-10-24 12:07:34 -04:00
Robin Templeton 2f20235f3e setBigInt64 tests 2017-10-24 11:50:14 -04:00
Robin Templeton 9aa15de18f getBigUint64 tests 2017-10-24 11:48:59 -04:00
Robin Templeton c23f22936c update copyright 2017-10-24 11:48:34 -04:00
Robin Templeton f2322cf8a6 use hex literals 2017-10-24 11:48:34 -04:00
Robin Templeton 2892cc78c7 improve error messages 2017-10-24 11:48:34 -04:00
Robin Templeton cca3876881 getBigInt64 2017-10-24 11:48:34 -04:00
Robin Templeton 46041c35ed BigInt64Array/BigUint64Array 2017-10-24 11:44:56 -04:00
Josh Wolfe 035e79610d switch small values to 0b notation 2017-10-23 21:56:00 -07:00
Josh Wolfe b4f121d866 BigInt bitshift operators 2017-10-23 21:40:22 -07:00
Daniel Ehrenberg db05f2f512 Merge pull request #1307 from rwaldron/bigint-tostring-returns-decimal-digits-only
BigInt: BigInt .toString() returns only decimal digits, does not include BigIntLiteralSuffix
2017-10-23 09:39:15 +02:00
Mathias Bynens 4e7ed93da8
RegExp property escapes: test Extended_Pictographic 2017-10-22 10:05:05 -07:00
Valerie R Young 0ad5eaf87c regenerate tests 2017-10-20 22:06:02 -04:00
Jeff Walden c05138b44c Modify $262.uncallableAndIsHTMLDDA() to $262.IsHTMLDDA (#1305)
Modify $262.uncallableAndIsHTMLDDA() to an optional $262.IsHTMLDDA (whose use must be guarded by a feature of the same name), and narrowly/correctly prescribe its requirements consistent with `document.all`'s behavior in HTML.
2017-10-19 15:03:21 -04:00
Rick Waldron f1b576af51 BigInt: BigInt .toString() returns only decimal digits, does not include BigIntLiteralSuffix 2017-10-19 11:53:18 -04:00
Rick Waldron a7fbcf3d9a BigInt: BigInt(Number.MAX_SAFE_INTEGER) & BigInt(-Number.MAX_SAFE_INTEGER) 2017-10-18 17:14:05 -04:00
Rick Waldron 08a967c8a4 BigInt: NaN is tested in nan-throws-rangeerror.js 2017-10-18 17:08:13 -04:00
Rick Waldron e2e534b210 BigInt: NewTarget tests shouldn't include anything reaches step 2 2017-10-18 17:07:33 -04:00
Valerie R Young aeffe35d5b
regenerate test files 2017-10-18 16:50:39 -04:00
Jeff Walden 99ee383d3f Fix a minor error-message typo, and include the thrown error in the TypeError-testing error message. 2017-10-18 15:28:36 -04:00
Josh Wolfe 96ba34c240 bigint bitwise and, or, xor 2017-10-18 12:14:13 -07:00
Jeff Walden 2974f19e89 Add a test for GetIterator(obj, ~async~) attempting to call obj[@@asyncIterator] even if that value is an object with an [[IsHTMLDDA]] internal slot. 2017-10-18 00:27:10 -07:00
Valerie R Young d3c7e1a13a generate files 2017-10-17 17:53:03 -04:00
Leo Balter 315eca2bbd Merge pull request #1293 from bocoup/esid-fix
fix: esid in case file instead of template file
2017-10-17 17:52:03 -04:00
Valerie R Young d68faa904f regenerate tests 2017-10-17 17:47:52 -04:00
Rick Waldron e760413d3f Merge pull request #1292 from caitp/FixAsyncFromSync
Fix Async-from-Sync Iterator tests
2017-10-17 16:18:36 -04:00
Caitlin Potter 51e6a124d3 Generate tests 2017-10-17 15:48:40 -04:00
Leo Balter 23bc183bb8 Merge pull request #1287 from jswalden/funky-return
Add tests for the case of `<iterator>.return` in the iteration protocol being an object that's uncallable and compares equal to `undefined`
2017-10-17 15:29:49 -04:00
Jeff Walden 76c1a8fa3a Add tests for the case of <iterator>.return, as used in the iteration protocol, being an object that's uncallable and compares equal to `undefined`. 2017-10-17 12:21:43 -07:00
Rick Waldron 747a2c86cf Merge pull request #1288 from lars-t-hansen/atomics_wake_20171017
Make Atomics.wake test cases resilient on slow / overloaded systems
2017-10-17 13:24:34 -04:00
Rick Waldron 511ce3b2c1 typeof ... fixups 2017-10-17 13:12:03 -04:00
Robin Templeton 72fb638ca7 BigInt.parseInt tests (#1208)
* BigInt.parseInt tests

* update for PR#1208

* fix copyright notices
2017-10-17 12:40:22 -04:00
Lars T Hansen 510908517e Make Atomics.wake test cases resilient on slow / overloaded systems 2017-10-17 14:56:52 +01:00
Daniel Ehrenberg 772fb79fd7 Merge pull request #1281 from cxielarko/bigint-bool-eq
ToPrimitive called without hint for boolean equality
2017-10-16 23:35:12 +02:00
Daniel Ehrenberg 68e9124927 Merge pull request #1283 from cxielarko/bigint-arithmetic
BigInt arithmetic tests
2017-10-16 21:55:00 +02:00
Rick Waldron 339222b445 Merge pull request #1279 from cxielarko/bigint-constructor
Property descriptor tests for BigInt.name, BigInt.length, and BigInt.prototype.constructor
2017-10-16 14:48:12 -04:00
Rick Waldron 3c5c0eddc4 Merge pull request #1280 from cxielarko/bigint-typeof
typeof test for BigInt
2017-10-16 14:30:27 -04:00
Josh Wolfe 5b721a23b5 bitwise-not tests for BigInt (#1277) 2017-10-16 14:17:13 -04:00
Robin Templeton 609869638f [BigInt] arithmetic tests 2017-10-16 13:19:08 -04:00
Zirak d36a1777b4 Test for proper handling of incomplete hex escapes (#1274)
See relevant firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1408452
2017-10-16 13:04:51 -04:00
Rick Waldron 9e3ff9a232 arguments object, non-strict immutable name binding fixup (#1278) 2017-10-16 13:01:32 -04:00
Robin Templeton a9092bdbdf [BigInt] ToPrimitive called without hint for equality 2017-10-16 12:57:33 -04:00
Robin Templeton 11cd9e4c34 [BigInt] typeof 2017-10-16 12:56:49 -04:00
Robin Templeton 0d44bc821d [BigInt] constructor, name, length properties 2017-10-16 12:55:56 -04:00
Rick Waldron 5d4c667b27 test/language/literals/regexp/*: early error test fixups (#1276) 2017-10-16 12:46:28 -04:00
Daniel Ehrenberg e6df79231d Update RegExp named capture tests for spec change (#1270)
The RegExp named groups specification has changed to not throw
errors in certain cases. This patch updates the test262 tests to match
the new specification, and throws in an additional test that verifies
the interaction between named group syntax and other replacement.
The tests pass on a version of V8 which implements the new semantics.

92ceba518c
2017-10-13 14:16:16 -04:00
Rick Waldron 56e02611d4 Merge pull request #1272 from leobalter/cxielarko-bigint-tostring
Updated tests for BigInt.prototype.toString
2017-10-13 13:39:54 -04:00
Josh Wolfe 0b5c39cf91 BigInt unary minus tests (#1269) 2017-10-12 16:55:22 -04:00
Leo Balter b77af3aa0f
Update tests for BigInt.prototype.toString 2017-10-12 16:19:46 -04:00
Leo Balter edfef8db55 Updates for let names as a LHS in for-in loops (#1271)
* Delete identifier-let-allowed-as-lefthandside-expression-non-strict.js

Fixes #1192

This is already covered by 8422147c17/test/language/statements/for-in/head-lhs-let.js (L27)

* restore for-in test
2017-10-12 15:27:15 -04:00
Robin Templeton 8ca8f06ba1
BigInt.prototype.toString 2017-10-12 15:13:52 -04:00
Leo Balter 1afb7c74fd Merge pull request #986 from dilijev/intl-gcl
Add version of intl402/6.2.3.js which tests via Intl.getCanonicalLocales
2017-10-06 12:37:36 -04:00
Leo Balter 9915c713c6 Merge pull request #1263 from thejoshwolfe/messages
Add messages to asserts and use mixed quotes instead of escapes
2017-10-06 12:34:04 -04:00
Leo Balter b8abd71305 fix repeated features tags (#1266) 2017-10-06 12:29:33 -04:00
Zibi Braniecki a042cd68f7 Intl.DateTimeFormat hourCycle tests (#1265) 2017-10-06 12:23:57 -04:00
Josh Wolfe 5cffebca94 use mixed quotes to avoid escape sequences in messages 2017-10-06 02:28:46 -07:00
Josh Wolfe 30e192da57 add messages to relational comparison tests 2017-10-06 02:25:58 -07:00
Valerie R Young 3c94ba0116 Fixup of 'Add version of intl402/6.2.3.js...' 2017-10-05 15:34:56 -04:00
Doug Ilijev 19caba81c4 Add version of intl402/6.2.3.js which tests via Intl.getCanonicalLocales 2017-10-05 15:28:57 -04:00
Leo Balter b3092c61b6 Add generators flags for tests depending on generators features (#1259)
* Add missing generators feature flags

* Generate files

* Add generators flags

* fixup! Add generators flags
2017-10-04 16:12:34 -04:00
Leo Balter 60c232b4d4 Merge pull request #1250 from caitp/AsyncFixesFor988
Update async iteration tests with respect to pending spec change
2017-10-04 11:58:37 -04:00
Josh Wolfe a88b08f3fe Increment/decrement tests for references to BigInt values (#1261) 2017-10-04 11:55:24 -04:00
Josh Wolfe 6443289089 Equality comparison tests for bigint (#1257) 2017-10-04 11:54:00 -04:00
Caitlin Potter 0881a6a2ad Generate tests 2017-10-04 11:24:27 +02:00
Rick Waldron a7b5a7aa97 Features.txt: Add string-trimming; replace "#" in feature tags (#1247) 2017-10-03 17:02:29 -04:00