summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js')
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
index 7af732e0b..1455350ad 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js
@@ -13,33 +13,33 @@ flags: [async]
---*/
var sequence = [],
- pReject,
- p = new Promise(function (resolve, reject) {
- pReject = reject;
- });
+ pReject,
+ p = new Promise(function(resolve, reject) {
+ pReject = reject;
+ });
sequence.push(1);
pReject();
-p.then(function () {
- $ERROR("Should not be called -- Promise rejected.");
-}, function () {
- sequence.push(3);
- checkSequence(sequence, "Should be first");
+p.then(function() {
+ $ERROR("Should not be called -- Promise rejected.");
+}, function() {
+ sequence.push(3);
+ checkSequence(sequence, "Should be first");
}).catch($DONE);
-Promise.resolve().then(function () {
- // enqueue another then-handler
- p.then(function () {
- $ERROR("Should not be called (2) -- Promise rejected.");
- }, function () {
- sequence.push(5);
- checkSequence(sequence, "Should be third");
- }).then($DONE, $DONE);
-
- sequence.push(4);
- checkSequence(sequence, "Should be second");
+Promise.resolve().then(function() {
+ // enqueue another then-handler
+ p.then(function() {
+ $ERROR("Should not be called (2) -- Promise rejected.");
+ }, function() {
+ sequence.push(5);
+ checkSequence(sequence, "Should be third");
+ }).then($DONE, $DONE);
+
+ sequence.push(4);
+ checkSequence(sequence, "Should be second");
}).catch($DONE);
sequence.push(2);