diff options
Diffstat (limited to 'test/built-ins/Promise/reject-via-abrupt-queue.js')
-rw-r--r-- | test/built-ins/Promise/reject-via-abrupt-queue.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Promise/reject-via-abrupt-queue.js b/test/built-ins/Promise/reject-via-abrupt-queue.js index b4a6e556a..c4194c4a8 100644 --- a/test/built-ins/Promise/reject-via-abrupt-queue.js +++ b/test/built-ins/Promise/reject-via-abrupt-queue.js @@ -42,13 +42,13 @@ var p = new Promise(function() { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }).then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}).then(function() { + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } + $DONE(); +}); |