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 };
|
||||
|
||||
asyncTest(
|
||||
Promise.try(function () {
|
||||
asyncTest(function () {
|
||||
return Promise.try(function () {
|
||||
assert.compareArray(
|
||||
Array.prototype.slice.call(arguments),
|
||||
[1, 2, Test262Error, sentinel]
|
||||
);
|
||||
}, 1, 2, Test262Error, sentinel)
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -11,11 +11,11 @@ includes: [asyncHelpers.js]
|
|||
|
||||
var sentinel = { sentinel: true };
|
||||
|
||||
asyncTest(
|
||||
Promise.try(function () {
|
||||
asyncTest(function() {
|
||||
return Promise.try(function () {
|
||||
return sentinel;
|
||||
}).then(function (v) {
|
||||
assert.sameValue(v, sentinel);
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue