diff options
Diffstat (limited to 'test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js')
-rw-r--r-- | test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js index 794677b57..ed75b1687 100644 --- a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js +++ b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js @@ -11,29 +11,29 @@ includes: [promiseHelper.js] var sequence = []; var noReason = {}; var no = Promise.reject(noReason); -no.then = function () { +no.then = function() { sequence.push(1); return Promise.prototype.then.apply(this, arguments); }; var yesValue = {}; var yes = Promise.resolve(yesValue); -yes.then = function () { +yes.then = function() { sequence.push(4); return Promise.prototype.then.apply(this, arguments); }; -no.catch(function (e) { +no.catch(function(e) { sequence.push(2); assert.sameValue(e, noReason); throw e; -}).finally(function () { +}).finally(function() { sequence.push(3); return yes; -}).catch(function (e) { +}).catch(function(e) { sequence.push(5); assert.sameValue(e, noReason); -}).then(function () { +}).then(function() { checkSequence(sequence, "All expected callbacks called in correct order"); $DONE(); }).catch($ERROR); |