diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-09 11:35:37 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 11:35:37 -0500 |
commit | a01de4a722d088055a7d84d8c691ddd7109edb34 (patch) | |
tree | f583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js | |
parent | 7b01f9799f99851955f23c18c12e6651c1941022 (diff) | |
download | qtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz |
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js')
-rw-r--r-- | test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js index 985591977..5fce956c1 100644 --- a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js @@ -22,23 +22,27 @@ flags: [async] ---*/ var resolve; -var thenable = new Promise(function(_resolve) { resolve = _resolve; }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(_resolve) { + resolve = _resolve; +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); resolve(); |