mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Remove explicit sta.js includes
INTERPRETING.md states that sta.js has to be included unconditionally.
This commit is contained in:
parent
3bcb28e918
commit
21f6a86a6d
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
`false` does not satisfy the assertion.
|
`false` does not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Two references to NaN do not satisfy the assertion.
|
Two references to NaN do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
An object literal does not satisfy the assertion.
|
An object literal does not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Distinct objects do not satisfy the assertion.
|
Distinct objects do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Positive and negative zero do not satisfy the assertion.
|
Positive and negative zero do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
description: >
|
description: >
|
||||||
Functions that throw values whose constructor does not match the specified
|
Functions that throw values whose constructor does not match the specified
|
||||||
constructor do not satisfy the assertion.
|
constructor do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
description: >
|
description: >
|
||||||
Functions that throw instances of the specified native Error constructor
|
Functions that throw instances of the specified native Error constructor
|
||||||
satisfy the assertion.
|
satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.throws(Error, function() {
|
assert.throws(Error, function() {
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
The assertion fails when invoked without arguments.
|
The assertion fails when invoked without arguments.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Functions that do not throw errors do not satisfy the assertion.
|
Functions that do not throw errors do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Fails if second arg is not a function
|
Fails if second arg is not a function
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Functions that throw the `null` value do not satisfy the assertion.
|
Functions that throw the `null` value do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Functions that throw primitive values do not satisfy the assertion.
|
Functions that throw primitive values do not satisfy the assertion.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
The assertion fails when invoked with a single argument.
|
The assertion fails when invoked with a single argument.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Only passes when the provided date is exactly the specified number of
|
Only passes when the provided date is exactly the specified number of
|
||||||
milliseconds from the Unix epoch
|
milliseconds from the Unix epoch
|
||||||
includes: [assertRelativeDateMs.js,sta.js]
|
includes: [assertRelativeDateMs.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thrown;
|
var thrown;
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
|
|
||||||
$DETACHBUFFER relies on the presence of a host definition for $262.detachArrayBuffer
|
$DETACHBUFFER relies on the presence of a host definition for $262.detachArrayBuffer
|
||||||
|
|
||||||
includes: [detachArrayBuffer.js,sta.js]
|
includes: [detachArrayBuffer.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var $262 = {
|
var $262 = {
|
||||||
|
@ -9,8 +9,6 @@ description: >
|
|||||||
$DETACHBUFFER relies on the presence of a definition for $262.detachArrayBuffer.
|
$DETACHBUFFER relies on the presence of a definition for $262.detachArrayBuffer.
|
||||||
|
|
||||||
Without a definition, calling $DETACHBUFFER will result in a ReferenceError
|
Without a definition, calling $DETACHBUFFER will result in a ReferenceError
|
||||||
|
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var ab = new ArrayBuffer(1);
|
var ab = new ArrayBuffer(1);
|
||||||
|
@ -10,7 +10,7 @@ description: >
|
|||||||
of numbers, each added during some operation, and verifies that they
|
of numbers, each added during some operation, and verifies that they
|
||||||
are in numeric order.
|
are in numeric order.
|
||||||
|
|
||||||
includes: [promiseHelper.js,sta.js]
|
includes: [promiseHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert(checkSequence([1, 2, 3, 4, 5]));
|
assert(checkSequence([1, 2, 3, 4, 5]));
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified property is not configurable do not satisfy the
|
Objects whose specified property is not configurable do not satisfy the
|
||||||
assertion outside of strict mode.
|
assertion outside of strict mode.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified property is not configurable do not satisfy the
|
Objects whose specified property is not configurable do not satisfy the
|
||||||
assertion in strict mode.
|
assertion in strict mode.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified symbol property is not enumerable do not satisfy the
|
Objects whose specified symbol property is not enumerable do not satisfy the
|
||||||
assertion.
|
assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Symbol]
|
features: [Symbol]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified string property is not enumerable do not satisfy the
|
Objects whose specified string property is not enumerable do not satisfy the
|
||||||
assertion.
|
assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
var obj = {};
|
var obj = {};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified property is configurable do not satisfy the
|
Objects whose specified property is configurable do not satisfy the
|
||||||
assertion.
|
assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
var obj = {};
|
var obj = {};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified property is not configurable satisfy the assertion
|
Objects whose specified property is not configurable satisfy the assertion
|
||||||
in strict mode.
|
in strict mode.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
var obj = {};
|
var obj = {};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified symbol property is enumerable do not satisfy the
|
Objects whose specified symbol property is enumerable do not satisfy the
|
||||||
assertion.
|
assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Symbol]
|
features: [Symbol]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified string property is enumerable do not satisfy the
|
Objects whose specified string property is enumerable do not satisfy the
|
||||||
assertion.
|
assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
var obj = {};
|
var obj = {};
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Objects whose specified property is writable do not satisfy the assertion.
|
Objects whose specified property is writable do not satisfy the assertion.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
var obj = {};
|
var obj = {};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
description: >
|
description: >
|
||||||
Objects whose specified property is not writable do not satisfy the
|
Objects whose specified property is not writable do not satisfy the
|
||||||
assertion outside of strict mode.
|
assertion outside of strict mode.
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -6,7 +6,7 @@ description: >
|
|||||||
Objects whose specified property is not writable do not satisfy the
|
Objects whose specified property is not writable do not satisfy the
|
||||||
assertion in strict mode.
|
assertion in strict mode.
|
||||||
|
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
description: >
|
description: >
|
||||||
The global `$ERROR` function throws an instance of the global `Test262Error`
|
The global `$ERROR` function throws an instance of the global `Test262Error`
|
||||||
function with the specified message.
|
function with the specified message.
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ description: >
|
|||||||
$ERROR
|
$ERROR
|
||||||
|
|
||||||
Assert that global $ERROR is overridable
|
Assert that global $ERROR is overridable
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
function BaloneyError() {}
|
function BaloneyError() {}
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@ description: >
|
|||||||
|
|
||||||
Test262Error
|
Test262Error
|
||||||
$ERROR
|
$ERROR
|
||||||
|
|
||||||
includes: [sta.js]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert(typeof Test262Error === "function");
|
assert(typeof Test262Error === "function");
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
verifyProperty should receive at least 3 arguments: obj, name, and descriptor
|
verifyProperty should receive at least 3 arguments: obj, name, and descriptor
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
assert.throws(Test262Error, () => {
|
assert.throws(Test262Error, () => {
|
||||||
verifyProperty();
|
verifyProperty();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
The desc argument should be an object or undefined
|
The desc argument should be an object or undefined
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Symbol]
|
features: [Symbol]
|
||||||
---*/
|
---*/
|
||||||
var sample = { foo: 42 };
|
var sample = { foo: 42 };
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
The first argument should have an own property
|
The first argument should have an own property
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
assert.throws(Test262Error, () => {
|
assert.throws(Test262Error, () => {
|
||||||
verifyProperty(Object, 'JeanPaulSartre', {});
|
verifyProperty(Object, 'JeanPaulSartre', {});
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Verify an undefined descriptor
|
Verify an undefined descriptor
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
var sample = {
|
var sample = {
|
||||||
bar: undefined,
|
bar: undefined,
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
verifyProperty()
|
verifyProperty()
|
||||||
...
|
...
|
||||||
|
|
||||||
includes: [propertyHelper.js,sta.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var threw = false;
|
var threw = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user