mirror of https://github.com/tc39/test262.git
Fix `asyncTest` usage for `Promise.try` tests
This commit is contained in:
parent
081808bebd
commit
d4fac47d3b
|
@ -11,12 +11,12 @@ includes: [asyncHelpers.js, compareArray.js]
|
||||||
|
|
||||||
var sentinel = { sentinel: true };
|
var sentinel = { sentinel: true };
|
||||||
|
|
||||||
asyncTest(
|
asyncTest(function () {
|
||||||
Promise.try(function () {
|
return Promise.try(function () {
|
||||||
assert.compareArray(
|
assert.compareArray(
|
||||||
Array.prototype.slice.call(arguments),
|
Array.prototype.slice.call(arguments),
|
||||||
[1, 2, Test262Error, sentinel]
|
[1, 2, Test262Error, sentinel]
|
||||||
);
|
);
|
||||||
}, 1, 2, Test262Error, sentinel)
|
}, 1, 2, Test262Error, sentinel)
|
||||||
);
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,11 @@ includes: [asyncHelpers.js]
|
||||||
|
|
||||||
var sentinel = { sentinel: true };
|
var sentinel = { sentinel: true };
|
||||||
|
|
||||||
asyncTest(
|
asyncTest(function() {
|
||||||
Promise.try(function () {
|
return Promise.try(function () {
|
||||||
return sentinel;
|
return sentinel;
|
||||||
}).then(function (v) {
|
}).then(function (v) {
|
||||||
assert.sameValue(v, sentinel);
|
assert.sameValue(v, sentinel);
|
||||||
})
|
})
|
||||||
);
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue