mirror of https://github.com/tc39/test262.git
Atomics.waitAsync: prevent in-agent tests from hanging by checking for Atomics.waitAsync at start of test
This commit is contained in:
parent
f1b0a1e270
commit
914ab0280c
|
@ -18,6 +18,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
$262.agent.start(`
|
||||
|
|
|
@ -8,6 +8,7 @@ description: >
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
$262.agent.start(`
|
||||
(async () => {
|
||||
|
|
|
@ -18,6 +18,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -25,6 +25,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.small;
|
||||
|
|
|
@ -20,6 +20,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
|
|
|
@ -23,6 +23,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
$262.agent.start(`
|
||||
|
|
|
@ -21,6 +21,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
|
|
|
@ -33,6 +33,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
$262.agent.start(`
|
||||
|
|
|
@ -20,6 +20,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
$262.agent.start(`
|
||||
|
|
|
@ -18,6 +18,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
|
||||
$262.agent.start(`
|
||||
|
|
|
@ -22,6 +22,7 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const WAIT_INDEX = 0;
|
||||
const RUNNING = 1;
|
||||
|
|
|
@ -26,6 +26,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const WAIT_INDEX = 0;
|
||||
const RUNNING = 1;
|
||||
const NUMAGENT = 2;
|
||||
|
|
|
@ -24,6 +24,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const value = 42;
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const NUMAGENT = 2;
|
||||
const RUNNING = 4;
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ flags: [async]
|
|||
includes: [atomicsHelper.js]
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const RUNNING = 1;
|
||||
const TIMEOUT = $262.agent.timeouts.huge;
|
||||
|
||||
|
|
Loading…
Reference in New Issue