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