Commit Graph

2657 Commits

Author SHA1 Message Date
Leo Balter e403eea331 Fix false positives 2018-12-21 10:50:23 -05:00
Leo Balter 7375dcb080 Remove duplicates 2018-12-21 10:50:23 -05:00
Leo Balter 258da539bc refactor coverage for flatMap 2018-12-20 13:08:21 -05:00
Leo Balter 02af6a5552 Regenerate tests 2018-12-20 12:53:31 -05:00
Leo Balter 7a1eed0134 Generate tests 2018-12-20 12:53:31 -05:00
Leo Balter 20c38d3396 Expand tests for duplicate lexical names of vardeclarednames in the same statementlist 2018-12-20 12:53:31 -05:00
Leo Balter 3703d2bad1 Generate tests 2018-12-20 12:49:50 -05:00
Leo Balter 6986a9166d Generate tests 2018-12-20 12:49:50 -05:00
Rick Waldron 73705f8801 UpdateExpressions: add necessary changes to tests to reflect latest specification. 2018-12-20 12:48:59 -05:00
Frank Yung-Fong Tang dab8c8983a remove "TypeError: Cannot convert a Symbol value to a string" (#2009) 2018-12-19 22:36:10 -02:00
Leo Balter 46c557247e Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
Peter Marshall b3efcd2f3f Consistently use spaces in features lists (#2000) 2018-12-17 17:00:04 -02:00
Frank Yung-Fong Tang bf6b753dd7 Rename position to index (#1994)
https://github.com/tc39/proposal-intl-segmenter/pull/55
2018-12-15 05:52:31 -05:00
Leo Balter be890421b8
Merge pull request #1985 from mkubilayk/private-method-init-order
test: Ensure private methods are visible from all initializers
2018-12-15 05:50:52 -05: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
Peter Marshall c41c491a8a Remove extra spaces from features list (#1996) 2018-12-15 05:36:28 -05:00
Kubilay Kahveci 14c49c0e9d Generate tests 2018-12-10 20:43:09 +00:00
Peter Wong c36bdcfeb3 Update tests for String.prototype.matchAll (#1990)
- Changes associated with spec changes (tc39/proposal-string-matchall#41)
- Update spec comments
- Added test verifying error thrown when `regexp[Symbol.matchAll]` is not callable
- Added test verifying `ToString` is called on `receiver`
2018-12-10 10:53:01 -05:00
Mathias Bynens b2597d060d Add tests for Array.prototype.sort stability (#1977)
https://github.com/tc39/ecma262/pull/1340
2018-12-06 11:56:58 -05:00
André Bargull b62dae4fff Fix various bugs in test cases (#1988) 2018-12-05 15:48:28 -05:00
Rick Waldron 3b09d0e2b5 Eliminate false positives: Intl.* 2018-11-30 11:47:57 -05:00
Rick Waldron 86deb370e7 Eliminate false positives: BigInt64Array, BigUint64Array 2018-11-30 11:37:28 -05:00
Rick Waldron 6e836cea56 Eliminate false positives: BigInt 2018-11-30 11:34:13 -05:00
Rick Waldron d98f3f4d63 Eliminate false positives: String.prototype.trimEnd, String.prototype.trimStart 2018-11-30 09:37:16 -05:00
Rick Waldron 6d2288fe79 Eliminate false positives: Promise.prototype.finally 2018-11-30 09:34:25 -05:00
Rick Waldron 628faa5e06 Eliminate false positives: Object.fromEntries 2018-11-30 09:31:54 -05:00
Rick Waldron 2e18327af2 Eliminate false positives: Array.prototype.flat, Array.prototype.flatMap 2018-11-30 09:27:07 -05:00
Gus Caplan 1df8797a6b add WeakSet to feature list where its used in Set tests 2018-11-28 10:26:57 -05:00
Leo Balter 92a585f04a Assert early error for private names in method definitions 2018-11-28 10:26:13 -05:00
Leo Balter 79fd1b2c76 Generate tests 2018-11-28 10:26:13 -05:00
Leo Balter 7be4e99f80 Generate tests 2018-11-28 10:26:13 -05:00
Ms2ger d857bd6f72 Unified Intl.NumberFormat: Add some initial tests for SetNumberFormatUnitOptions. 2018-11-28 10:25:18 -05:00
Leo Balter 9d5aa7d267 Generate tests 2018-11-26 16:39:43 -05:00
Leo Balter 94a0eaeb8a Generate tests 2018-11-26 16:39:43 -05:00
Leo Balter 9084e6cea9
Merge pull request #1965 from jonco3/master
Fix a couple of minor issues in dynamic-import tests
2018-11-26 16:15:18 -05:00
Ms2ger 1185b5287d Intl.Segmenter: Submit remaining V8 tests. 2018-11-26 15:04:19 -05:00
Gus Caplan 2aacb28bb9 Fix some proxy tests (#1966)
- `Proxy/getOwnPropertyDescriptor/call-parameters.js`
  Fixes a call to `Object.getOwnPropertyDescriptor` without the prop
  param. Not actually a huge problem, as the test wasn't depending on
  it.

- `Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined`
  This test asserted that `function() {}` should throw with the
  following spec step, which is incorrect, as functions are typed as
  `Object` in the spec.
  """
  1. If Type(trapResultObj) is neither Object nor Undefined, throw a
    TypeError exception.
  """
2018-11-26 13:41:13 -05:00
Jon Coppeard 65731d7d96 Simplify default-property-not-set-own.js test by making it not import itself 2018-11-23 11:58:46 +00:00
Jon Coppeard a0fbe4aa9a Fix a couple of minor issues in dynamic-import tests 2018-11-22 17:54:39 +00:00
Rick Waldron e91645c812 Atomics: (bigint) initialize BigInt64Array before calling $262.agent.start(string-of-program-code) 2018-11-20 15:57:39 -05:00
Rick Waldron 8793bf5d57 Atomics: fix running index in notify-with-no-matching-agents-waiting.js
Migrating all tests to this API is necessary to prevent tests from hanging indefinitely when a SAB is sent to a worker but the code in the worker attempts to create a non-sharable TypedArray (something that is not Int32Array or BigInt64Array). When that scenario occurs, an exception is thrown and the agent worker can no longer communicate with any other threads that control the SAB. If the main thread happens to be spinning in the $262.agent.waitUntil() while loop, it will never meet its termination condition and the test will hang indefinitely.

Because we've defined $262.agent.broadcast(SAB) in https://github.com/tc39/test262/blob/master/INTERPRETING.md, there are host implementations that assume compatibility, which must be maintained.
2018-11-20 15:18:14 -05:00
Rick Waldron e4883091b9 Introduce $262.agent.safeBroadcast and migrate Atomics tests.
Migrating all tests to this API is necessary to prevent tests from hanging indefinitely when a SAB is sent to a worker but the code in the worker attempts to create a non-sharable TypedArray (something that is not Int32Array or BigInt64Array). When that scenario occurs, an exception is thrown and the agent worker can no longer communicate with any other threads that control the SAB. If the main thread happens to be spinning in the $262.agent.waitUntil() while loop, it will never meet its termination condition and the test will hang indefinitely.

Because we've defined $262.agent.broadcast(SAB) in https://github.com/tc39/test262/blob/master/INTERPRETING.md, there are host implementations that assume compatibility, which must be maintained.
2018-11-20 15:17:47 -05:00
Ms2ger ba6a483c43 Intl.Segmenter: Fix copy/paste errors in tests for valid options. 2018-11-15 10:04:28 -05:00
Leo Balter 028d76e551 Generate tests 2018-11-14 09:37:26 -05:00
Leo Balter f7f845ce6f Update tests with DONOTEVALUATE 2018-11-14 09:19:15 -05:00
Leo Balter 238c88d4a0 Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter 10dc6ff75a Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter 50601e7aad Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00
Adrian Heine 4f085d7b8f Fix typo (disinct -> distinct) 2018-11-10 10:50:21 +01:00