diff options
Diffstat (limited to 'test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js')
-rw-r--r-- | test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js index 7eb81e9ce..e8cc200f7 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js @@ -15,17 +15,17 @@ var p1 = Promise.resolve(3); var pAll = Promise.all([p1]); -pAll.then(function (result) { - if (!(pAll instanceof Promise)) { - $ERROR("Expected Promise.all() to be promise, actually " + pAll); - } - if (!(result instanceof Array)) { - $ERROR("Expected Promise.all() to be promise for an Array, actually " + result); - } - if (result.length !== 1) { - $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result); - } - if (result[0] !== 3) { - $ERROR("Expected result[0] to be 3, actually " + result[0]); - } +pAll.then(function(result) { + if (!(pAll instanceof Promise)) { + $ERROR("Expected Promise.all() to be promise, actually " + pAll); + } + if (!(result instanceof Array)) { + $ERROR("Expected Promise.all() to be promise for an Array, actually " + result); + } + if (result.length !== 1) { + $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result); + } + if (result[0] !== 3) { + $ERROR("Expected result[0] to be 3, actually " + result[0]); + } }).then($DONE, $DONE); |