diff options
Diffstat (limited to 'test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js')
-rw-r--r-- | test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js index bb700ae46..128375aae 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js @@ -11,17 +11,17 @@ flags: [async] ---*/ var rejectP2, - p1 = Promise.resolve(1), - p2 = new Promise(function (resolve, reject) { - rejectP2 = reject; - }); + p1 = Promise.resolve(1), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); -Promise.all([p1, p2]).then(function () { - $ERROR("Did not expect promise to be fulfilled."); -}, function (rejected) { - if (rejected !== 2) { - $ERROR("Expected promise to be rejected with 2, actually " + rejected); - } +Promise.all([p1, p2]).then(function() { + $ERROR("Did not expect promise to be fulfilled."); +}, function(rejected) { + if (rejected !== 2) { + $ERROR("Expected promise to be rejected with 2, actually " + rejected); + } }).then($DONE, $DONE); rejectP2(2); |