summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-09 11:35:37 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 11:35:37 -0500
commita01de4a722d088055a7d84d8c691ddd7109edb34 (patch)
treef583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
parent7b01f9799f99851955f23c18c12e6651c1941022 (diff)
downloadqtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js')
-rw-r--r--test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
index cca930722..18da6d071 100644
--- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
+++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
@@ -9,11 +9,10 @@ description: Promise.race rejects if argument is not object or is non-iterable
flags: [async]
---*/
-Promise.race(new Error("abrupt")).then(function () {
- $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError');
-}, function (err) {
- if (!(err instanceof TypeError)) {
- $ERROR('Expected TypeError, got ' + err);
- }
+Promise.race(new Error("abrupt")).then(function() {
+ $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError');
+}, function(err) {
+ if (!(err instanceof TypeError)) {
+ $ERROR('Expected TypeError, got ' + err);
+ }
}).then($DONE, $DONE);
-