253 Commits

Author SHA1 Message Date
André Bargull
20ea611db7 Replace mayHaveProperty with verifyProperty 2017-12-21 16:46:56 -05:00
André Bargull
d249979bc9 Update language tag mapping data 2017-12-21 16:46:55 -05:00
André Bargull
2bf5a3ce26 Add numbering system digits for 'bali' and 'limb' 2017-12-21 16:46:55 -05:00
André Bargull
2efacfe368 Update list of numbering systems to match CLDR 32 2017-12-21 16:46:55 -05:00
André Bargull
56323fe2dd Also test Intl.PluralRules if available 2017-12-21 16:46:55 -05:00
André Bargull
48173672f2 Inline testValidDateTimeComponentValue into single test using this function 2017-12-21 16:46:55 -05:00
André Bargull
064ce66a5b Remove unused return value for testOption 2017-12-21 16:46:55 -05:00
André Bargull
52980ef496 Move test data for getLocaleSupportInfo into getLocaleSupportInfo 2017-12-21 16:46:55 -05:00
André Bargull
017fa6d55f Remove caching of getLocaleSupportInfo() return value 2017-12-21 16:46:55 -05:00
André Bargull
123259733b Replace testArraysAreSame with assert.compareArray 2017-12-21 16:46:55 -05:00
André Bargull
e65c65c293 Remove unused return value from testWithIntlConstructors 2017-12-21 16:46:55 -05:00
André Bargull
f87aeab893 Canada/East-Saskatchewan is no longer a valid time zone identifier (tzdata2017c) 2017-12-21 16:46:55 -05:00
Aakash Patel
4fdbb34914 Remove unnecessary uses of let in harness.
The use of `let` is unnecessary here, particularly in a
file that is needed to run any of the tests, even the ES5 tests.
Removing it allows older engines to run older tests.
2017-12-19 15:50:19 -05:00
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