test262/harness
Mike Pennisi f782971ad2 Remove harness file, arrayContains.js
The `arrayContains` function has a number of deficiencies which make it
inappropriate for Test262:

- It apparently isn't very useful: despite being available for over 7
  years, fewer than ten tests use it
- It's misleading: its documentation reads, "Verify that a subArray is
  contained within an array." In reality, it only verifies that all the
  elements of one array are present in another--order does not matter.
- It's not ergonomic for test authors: it has been misused to create
  tests that were prone to false positives [1]
- It's not ergonomic for implementers: ostensibly designed for use with
  `assert`, the failure messages produced by tests that use it do not
  necessarily have very much context

All code in the "harness" directory adds to the total amount of
project-specific information which contributors are expected to to
learn. In light of the above deficiencies, the burden of this particular
harness file is unjustified.

Remove the harness file and its associated tests. Update the tests which
depend on it to express their expectations using alternate methods, and
strengthen the tests to assert element order wherever appropriate.

[1] https://github.com/tc39/test262/pull/3289
2021-11-01 12:55:10 -04:00
..
assert.js Add identity tests for the assert.throws 2021-09-21 16:45:27 -04:00
assertRelativeDateMs.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
async-gc.js Add feature tag for cleanupSome 2020-07-21 16:57:50 -04:00
atomicsHelper.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
byteConversionValues.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
compareArray.js fix: ensure that symbol args as message don't break assert.compareArray 2021-10-05 15:16:53 -04:00
compareIterator.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
dateConstants.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
decimalToHexString.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
deepEqual.js Cleanup compareArray and deepEqual assertions, remove assert._formatValue 2019-10-09 17:57:10 -04:00
detachArrayBuffer.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
doneprintHandle.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
features.yml Make Atomics tests more resilient against intermittent failures (#1617) 2018-07-03 12:34:54 -04:00
fnGlobalObject.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
hidden-constructors.js Remove erroneous ArrowFunction 2020-10-07 16:43:48 -04:00
isConstructor.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
nans.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
nativeFunctionMatcher.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
promiseHelper.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
propertyHelper.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
proxyTrapsHelper.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
regExpUtils.js Don't use function argument destructuring in regExpUtils.js (#3000) 2021-05-28 19:47:36 -04:00
sta.js chore: migrate $ERROR -> throw new Test262Error in .jshintrc, harness/sta.js (#3122) 2021-07-29 12:38:45 -07:00
tcoHelper.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
temporalHelpers.js Add Temporal tests 2021-10-01 14:30:12 -04:00
testAtomics.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
testBigIntTypedArray.js Atomics: corrections 2020-06-24 12:26:41 -04:00
testIntl.js Add helper functions to retrieve all calendars, collations, numberingSystems, and simple sanctioned units 2021-09-08 09:29:06 -04:00
testTypedArray.js Atomics: corrections 2020-06-24 12:26:41 -04:00
timer.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
typeCoercion.js lint: add rule to verify use of harness files 2019-09-25 14:00:50 -04:00
wellKnownIntrinsicObjects.js native function validator for your consideration 2020-08-04 19:44:31 -04:00