mirror of https://github.com/tc39/test262.git
Generated tests for refactoring (IIFE/async function).then(\$DONE, \$DONE); to use asyncTest
This commit is contained in:
parent
4d9d5c570d
commit
4fe158d39d
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -24,8 +25,8 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue(await ref(), ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -22,8 +23,8 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue(await ref(), ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -22,8 +23,8 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue(await ref(), ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -24,7 +25,7 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
await ref()
|
||||
|
@ -34,5 +35,5 @@ let ref = async function BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -22,7 +23,7 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
await ref()
|
||||
|
@ -32,5 +33,5 @@ let ref = async function BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-async-function-definitions
|
||||
features: [async-functions]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
Async Function Definitions
|
||||
|
||||
|
@ -22,7 +23,7 @@ let ref = async function BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
await ref()
|
||||
|
@ -32,5 +33,5 @@ let ref = async function BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -22,8 +23,8 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue((await (await ref()).next()).value, ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -20,8 +21,8 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue((await (await ref()).next()).value, ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, noStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -20,8 +21,8 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
assert.sameValue((await (await ref()).next()).value, ref);
|
||||
assert.sameValue(callCount, 1, 'function invoked exactly once');
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -22,7 +23,7 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
(await (await ref()).next()).value
|
||||
|
@ -32,5 +33,5 @@ let ref = async function * BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -20,7 +21,7 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
(await (await ref()).next()).value
|
||||
|
@ -30,5 +31,5 @@ let ref = async function * BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ description: Reassignment of function name is silently ignored in non-strict mod
|
|||
esid: sec-asyncgenerator-definitions-evaluation
|
||||
features: [async-iteration]
|
||||
flags: [generated, async, onlyStrict]
|
||||
includes: [asyncHelpers.js]
|
||||
info: |
|
||||
AsyncGeneratorExpression :
|
||||
async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }
|
||||
|
@ -20,7 +21,7 @@ let ref = async function * BindingIdentifier() {
|
|||
return BindingIdentifier;
|
||||
};
|
||||
|
||||
(async () => {
|
||||
asyncTest(async () => {
|
||||
let catchCount = 0;
|
||||
try {
|
||||
(await (await ref()).next()).value
|
||||
|
@ -30,5 +31,5 @@ let ref = async function * BindingIdentifier() {
|
|||
}
|
||||
assert.sameValue(catchCount, 1);
|
||||
assert.sameValue(callCount, 1);
|
||||
})().then($DONE, $DONE);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue