Commit Graph

2720 Commits

Author SHA1 Message Date
peterwmwong f1e45d9e5e
Fleshed out tests for Symbol.matchAll, String.p.matchAll, RegExp.p[@@matchAll], and %RegExpStringIteratorPrototype%
Tests were updated and assuming https://github.com/tc39/proposal-string-matchall/pull/33 will be merged.
2018-03-17 22:48:31 -05:00
Jordan Harband e15be1853b
String.prototype.matchAll: add tests for stage 3
`RegExp.prototype[Symbol.matchAll]`: Add basic tests.
2018-01-25 23:45:12 -08:00
Jordan Harband 5b3914a37b
String.prototype.matchAll: add tests for stage 3
`String.prototype.matchAll`: Add basic tests.
2018-01-25 00:25:10 -08:00
Daniel Ehrenberg 73b8d9c773 Revert "Revert "Additional tests for QuantifiableAssertion" (#1458)" (#1459)
This reverts commit 173e98e00b.
2018-04-09 17:35:13 -04:00
Rick Waldron 845407e0b6
Merge pull request #1506 from rkirsling/remove-lf-from-cr-test
Remove errant LF from CR line ending test.
2018-04-06 11:25:02 -04:00
Ross Kirsling a7b2d07a94 Remove errant LF from CR line ending test. 2018-04-05 23:32:25 -07:00
Valerie Young 714fdc9125 whitespace and delete file (#1505) 2018-04-04 14:57:56 -04:00
Rick Waldron f9e482b393
Merge pull request #1504 from jswalden/dv-final-detachment-check
Add a test verifying that the OrdinaryCreateFromConstructor call in the DataView constructor is checked for underlying-buffer detachedness before its result is used
2018-04-03 14:46:49 -04:00
Jeff Walden ba783aef91 Add a test verifying that the OrdinaryCreateFromConstructor call in the DataView constructor is checked for underlying-buffer detachedness before its result is used. 2018-04-02 15:19:13 -07:00
André Bargull ea6c18c5e2 Don't compute NaN values in functions (#1503)
`function nan() { return /* expression to compute NaN */ }` may not return the same implementation-distinguishable NaN value before and after JIT compilation.
2018-03-22 20:20:29 -04:00
André Bargull 500e48e6ce Fix various test bugs (#1502)
Fixes #1492
2018-03-22 16:36:57 -04:00
Amal Hussein 5d6899522a additional test coverage for atomics.wait (#1497) 2018-03-19 20:06:53 -04:00
Leo Balter 478f5b4c0c
Add features tags for Atomics and SharedArrayBuffer (#1494)
* Add features tags for Atomics

* Add features tags for SharedArrayBuffer
2018-03-19 19:51:32 -04:00
Leo Balter 431e6cb20c
Add more tests for Atomics wait (#1495) 2018-03-19 19:50:28 -04:00
Rick Waldron 03f0f56961 Promise.all/race with non-iterable or invalid return from Symbol.iterator. (#1496)
Fixes gh-1490
2018-03-19 14:01:36 -04:00
Amal Hussein 50dd1fbd58 additional tests for atomics wait + updated input values #1492 fix (#1493) 2018-03-16 15:41:59 -04:00
Amal Hussein b07c546b8a Initial tests for extending Atomics.wait test coverage (#1488) 2018-03-13 17:22:10 -04:00
Leo Balter cdbf81856b
Merge pull request #1491 from bocoup/bigint-fix
Bigint fix: the remaining bugs found in #1461
2018-03-13 16:07:42 -04:00
Valerie R Young cc86629301 BigInt: fix, make sure to correctly use different typedarray ctor 2018-03-13 15:23:39 -04:00
Valerie R Young 3f96092cb9 BigInt: fix, set only BigInts to index to avoid false negatives 2018-03-13 15:07:17 -04:00
Valerie R Young 324c18038b BigInt: fix input values to be type BigInt 2018-03-13 14:58:43 -04:00
Valerie R Young 7c857318f0 BigInt: fix, other TypedArray should be Big 2018-03-13 14:53:06 -04:00
Valerie R Young 07fdc340a4 BigInt: fix make buffer size BYTES_PER_ELEMENT 2018-03-13 14:37:15 -04:00
Valerie R Young a9827c945d BigInt: fix TypedArray fncs expecting BigInt for cmp 2018-03-13 13:47:29 -04:00
Valerie R Young fcb5207932 BigInt: fix test sortcompare does not call toString 2018-03-13 13:26:50 -04:00
Rick Waldron 2975694f86 Weaken tests about NaN canonicalization.
Fixes gh-1476
Closes gh-1484
2018-03-13 12:53:39 -04:00
Valerie 7b200cb9e7 Rename TypedArrays folder to TypedArrayConstructors (#1489) 2018-03-13 12:47:18 -04:00
Valerie 496771cd64 BigInt: fix error type in BigInt from string conversion (#1487) 2018-03-12 15:22:29 -04:00
Valerie b1bbf08bdc BigInt: some fixes listed in #1461 (#1485)
test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js
- Should refer to BigInt conversion instead of ToNumber

test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-non-numeric.js
- Missing coverage for non-convertable values like undefined or null?
- added fill-values-non-numeric-throw.js

test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-tointeger-offset-symbol.js
- Change [1] to [1n] to avoid possible false-positives because ToBigInt(1) also throws a TypeError.
- Issue also present in other set() tests.
2018-03-12 14:23:58 -04:00
Valerie 985c439c94 BigInt: Add tests for BigInt conversions in TypedArray prototype/set and TypedArray internal [[set]] (#1478)
* BigInt: Add tests for BigInt conversions in prototype/set

* BigInt: add conversion tests for internal [[set]]
2018-03-12 14:21:27 -04:00
Valerie 3c69133cc4 Bigint typedarray conversion (#1469)
* BigInt: add tests for TypedArray(typedArray) constructor of mixed 'Big'/'not Big' element types

* BigInt: update info text on tests of ToBigInt

* BigInt: conversion to big int on creation of Big(U)Int64 TypedArray

* BigInt: Add tests for ToBigInt64 and ToBigUint64 wrapping
2018-03-09 11:23:50 -05:00
Leo Balter 3854fc38dd
Merge pull request #1481 from bocoup/anba-fixes
TypedArray and Async Iteration bug fixes
2018-03-09 10:39:34 -05:00
Leo Balter dd147e5052 Whitespace 2018-03-09 10:31:38 -05:00
mitchcurtis cc6f2e352e Link to Metadata section in INTERPRETING.md (#1482) 2018-03-09 10:16:45 -05:00
Valerie R Young 2576b60364 TypedArray and Async Iteration bug fixes 2018-03-08 18:23:27 -05:00
Leo Balter 222b86cac5
improve propertyHelper for failure messages (#1480)
Example:
Before: descriptor value should be 42 Expected SameValue(«1», «0») to be true
After: descriptor value should be 42
2018-03-08 12:12:15 -05:00
Leo Balter ccab9a18b0
Fix length prop tests for the TypedArrays ctors family (#1479) 2018-03-08 09:21:09 -05:00
Rick Waldron 3af53b8087 test/built-ins/Object/prototype/toString/*.js: clean up and extended fixes from gh-1473 (#1475) 2018-03-07 14:11:28 -05:00
Michael Ficarra 3207bf74d0 Function.prototype.toString works on symbol-named built-ins 2018-03-07 14:09:45 -05:00
Michael Ficarra f3b8aff71f Function.prototype.toString works on anonymous well-known intrinsics 2018-03-07 14:09:45 -05:00
Michael Ficarra 7d5a5fef36 add Function.prototype.toString result for callable proxies 2018-03-07 14:09:45 -05:00
Michael Ficarra 83ffb4bbf2 allow any function to report its toString as a NativeFunction
related: https://github.com/tc39/Function-prototype-toString-revision/pull/26
2018-03-07 14:09:45 -05:00
Rick Waldron ce9419779f typed-arrays/bigint: fixes per recommendation. (#1473)
Fixes gh-1467
2018-03-06 15:14:11 -05:00
Leo Balter ac55e29ed0 Fix yaml consistency 2018-03-06 14:36:02 -05:00
Valerie 52f70e2f63 typed-array: ctor test renames (#1468) 2018-03-02 15:20:41 -05:00
Valerie e14a9ad9fe async-iteration: AsyncGeneratorPrototype tests (#1451) 2018-03-02 09:44:23 -05:00
Valerie R Young 4a3e19b3e4 async-iteration: AsyncFromSyncIteratorPrototype next/throw/return 2018-03-01 18:40:06 -05:00
Rick Waldron 0192e0d70e TypedArrays with elementSize 1 cannot produce these range errors (#1465) 2018-03-01 15:10:10 -05:00
Valerie 1e1d503c1b numeric literal seperators: test change in CodePoint production (#1464) 2018-02-28 13:58:22 -05:00
Leo Balter 7add5252e5 Remove unused parameter for testWithBigIntTypedArrayConstructors
+whitespace
2018-02-28 11:06:31 -05:00