Robin Templeton
cca3876881
getBigInt64
2017-10-24 11:48:34 -04:00
Leo Balter
9737a5ff73
Improve tests for BigInt.prototype.valueOf ( #1256 )
...
* Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
* fixup! Improve tests for BigInt.prototype.valueOf
2017-10-03 16:51:07 -04:00
Yusuke Suzuki
ba891c753c
Do not use BigInt literal without `features: [BigInt]` ( #1253 )
...
typeCoercion.js is included in several tests which are not marked as `features: [BigInt]`.
Since BigInt is new feature, we should not make the above unrelated tests failed due to
lack of BigInt syntax support.
Close #1252 .
2017-10-03 14:22:03 -04:00
Robin Templeton
5f338a30a1
Add tests for BigInt.prototype.valueOf ( #1234 )
...
* BigInt valueOf tests
* add features from typeCoercion.js
2017-10-02 16:13:09 -04:00
Josh Wolfe
dafde72971
BigInt.asUintN tests
...
* typeCoercion.js supports ToIndex
* typeCoercion.js supports ToBigInt
* updated BigInt.asIntN type coercion tests to use typeCoercion.js
2017-09-12 18:38:29 -07:00
Rick Waldron
8a2ec34200
harness/*: Eliminate unnecessary uses of features that would require "features: ..." tags
2017-09-08 12:25:44 -04:00
Rick Waldron
65424be3ef
Lint: harness features flag enforcement via linter
2017-09-08 12:24:48 -04:00
Josh Wolfe
f83adad4bd
test for String.prototype.indexOf first parameter type coercion
2017-09-08 10:15:19 -04:00
Josh Wolfe
0d9ef34510
more separation of ToInteger from ToNumber
2017-09-08 10:15:19 -04:00
Josh Wolfe
0f3f22f6ab
use informative stack traces instead of loops
2017-09-08 10:15:19 -04:00
Josh Wolfe
29938e9525
type coercion harness utilities
2017-09-08 10:15:19 -04:00
Leo Balter
74cfdfcca3
Remove arrow function syntax from harness/assert.js
...
After conversations in #1215 , we need to catch up with the code that was previously
produced before we set the features flags requirements.
2017-09-08 10:13:23 -04:00
Rick Waldron
c23ea89fe2
Fix indentation in harness/propertHelper.js
2017-08-31 14:05:46 -04:00
Doug Ilijev
c0b520b8c9
Remove harness/simdUtilities.js because SIMD tests were removed and nothing references it. ( #1162 )
2017-08-03 17:46:14 -04:00
Rick Waldron
4ea2931f16
Update all harness files to pass linting. ( #1153 )
...
```
$ python tools/lint/lint.py --whitelist lint.whitelist harness/*.js
Linting 25 files.
Linting complete. 0 errors found.
```
- Renames detachArrayBuffer-$262.detachArrayBuffer.js -> detachArrayBuffer-host-detachArrayBuffer.js (previous naming prevents command-click from terminal)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-14 11:37:24 -04:00
Rick Waldron
30a4fb13a2
Fix typo in harness/arrayContains.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
27f3452b33
harness test: arrayContains.js
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
c9f3ab5610
Temp renaming to get around case ignorance, part 2
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00
Rick Waldron
86209d8fd9
Make all harness/* file names consistent; update occurrences in test
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:58 -04:00
Rick Waldron
2086f66c55
Update verifyProperty to allow checking `value`
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 11:58:16 -04:00
Leo Balter
666f0e920a
Add assert.throws.early
2017-05-01 12:29:52 -04:00
Daniel Ehrenberg
abac4e0b19
Fix up compareArray
2017-04-27 19:33:41 -04:00
Daniel Ehrenberg
8cb7f59395
Create an assert.compareArray
...
This is a convenience function which tries to make tests easier
to read and write.
2017-04-27 19:33:40 -04:00
André Bargull
94f6003d11
Optimize decodeURI/encodeURI tests ( #987 )
...
* Move decimalToHexString into harness instead of duplicating it in multiple files
* Optimize decimalToHexString and support numbers greater than 65535
* Replace alternative decimalToHexString function with include for decimalToHexString.js
* Add decimalToHex2String to return the string representation of a two-digit hex-number
* Replace decimalToHex2String with decimalToPercentHexString to return the percent hex-encoded string of a two-digit hex-number
* Replace two String.fromCharCode calls with a single call
* Further reduce string concatentations in decodeURI[Component] tests
* Remove unnecessary Test262Error error handling in catch-clauses
* Remove try/catch wrappings in decodeURI/encodeURI tests
2017-04-18 16:31:31 -04:00
Leo Balter
e43ce56105
Add Verify Property harness ( #979 )
2017-04-15 12:56:29 -04:00
André Bargull
1ba3a7c4a9
Remove unused functionality from harness ( #975 )
2017-04-14 12:22:27 -04:00
André Bargull
d59e30c95e
Remove execute bit from files ( #976 )
2017-04-13 16:24:07 -04:00
Mathias Bynens
44b40e083e
Add exhaustive tests for RegExp Unicode property escapes ( #971 )
...
Proposal: https://github.com/tc39/proposal-regexp-unicode-property-escapes
These tests have been generated by the script at https://github.com/mathiasbynens/unicode-property-escapes-tests . They check all the properties and values that should be supported by implementations against the symbols they’re supposed to match. False positives are detected as well.
Ref. #950 .
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/4 .
2017-04-13 11:22:49 -04:00
Mathias Bynens
a621155bcd
Unify indentation and add .editorconfig ( #973 )
2017-04-13 10:37:32 -04:00
Leo Balter
866d7f8d8e
Improve isEnumerable check with a for-in loop for string names ( #880 )
...
Ref https://github.com/tc39/test262/pull/879#discussion_r104128520
2017-03-13 10:48:33 -07:00
Lars T Hansen
abc4dfae42
Account for the use of ToIndex in Atomic operations ( #870 )
...
Ref tc39/ecma262#807
2017-03-02 13:21:14 -05:00
Rick Waldron
fdd2fa9b1c
Rename $ => $262. Fixes gh-802 ( #823 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-03-01 16:34:15 -05:00
Shu-yu Guo
a72ee6d912
SharedArrayBuffer and Atomics tests ( #839 )
2017-02-07 11:17:31 -05:00
Kevin Gibbons
abf6489b29
use $.detachArrayBuffer API instead of throwing ( #795 )
2016-11-22 17:13:23 -05:00
Mike Pennisi
ade6d2e384
Remove "NotEarlyError" object
...
Because expectations regarding error "phase" are now expressed via test
meta-data, the test runner may now enforce this requirement on negative
tests.
Remove the "NotEarlyError" from the project source. This reduces the
amount of domain knowledge required to author tests and lessens the
potential for inconsistencies between tests.
2016-10-19 15:24:22 -04:00
Leonardo Balter
813bb5166c
Remove precision-equivalency tests
...
Due to specs approximation values, some tests are invalid as the harness
helpers rely on another approximated values as Math.LN2.
2016-06-20 17:44:11 -04:00
Leonardo Balter
bc42c6ab5c
Add harness for byte conversion values
...
Update testTypedArrayConversions to require byteConversionValues
2016-05-25 10:10:50 -04:00
jugglinmike
b17ffc0298
Add tests for NaN handling with Typed Arrays ( #623 )
...
Ensure that NaN values are canonicalized consistently by all invocations
of SetValueInBuffer. Also ensure that `%TypedArray%.prototype.set` and
`%TypedArray%.prototype.slice` preserve the bit-level encoding of the
source data.
Use a set of experimentally-derived expressions known to produce NaN
values with distinct bit patterns in various platforms.
2016-05-12 10:16:03 -04:00
Gorkem Yakin
f6475d81bf
Merge pull request #543 from bocoup/enumerable-helper
...
Fix verifyEnumerable helper to account for properties with Symbol values
2016-04-25 16:32:53 -07:00
jugglinmike
ba3dacbe5a
Correct tests for native functions' toString value ( #580 )
...
Modify the regular expression for native functions' toString value to
satisfy all test cases. Correct the test file's reference to the harness
file. Re-format the test file's assertions to aid debugging in the event
of failure.
2016-04-21 15:55:54 -04:00
jugglinmike
cf68c3be91
Correct invalid tests for the Date constructor
...
The millisecond representation of a given Date instance is dependent on
the local system's time zone settings. In order to pass consistently
across contexts, tests for this value must take the system configuration
into account.
Introduce a test harness utility function to encapsulate these concerns.
Re-use this function across all test files that assert the exact
millisecond representation of Date instances.
2016-04-19 17:00:59 -04:00
Leonardo Balter
04a3c28f7d
Add tests for conversion operations on TypedArrays
2016-04-19 12:18:52 -04:00
dtig
20d37a6f2f
Add SIMD test suite and utility functions ( #442 )
2016-04-18 14:26:15 -04:00
Leonardo Balter
e7f6cd7f86
assert.throws fails if second argument is not a function
2016-04-15 10:14:54 -04:00
Michael Ficarra
6b7cbb5035
add Function.prototype.toString tests, conforming to proposed revision
...
See the proposal at
https://tc39.github.io/Function-prototype-toString-revision/
2016-04-11 14:39:12 -04:00
Leonardo Balter
70c7375be8
Add harness/detachArrayBuffer.js
2016-03-22 17:00:01 -04:00
Leonardo Balter
a93ef42b56
Fix verifyEnumerable helper to account for Symbol properties
2016-03-15 10:13:52 -04:00
Jordan Harband
a6fad62d7c
Last minute fixes
2016-02-19 11:27:31 -08:00
Jordan Harband
6f05b008dc
Encapsulate helper function's helper function
2016-02-17 15:01:26 -08:00
Jordan Harband
d530c87b41
Create `proxyTrapsHelper` to throw on all traps by default.
2016-02-13 15:56:47 -08:00