summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js')
-rw-r--r--test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
index 78aa38e01..fd1519766 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js
@@ -14,27 +14,27 @@ flags: [async]
var sequence = [];
-var p = new Promise(function(resolve, reject) {
- sequence.push(1);
- resolve("");
+var p = new Promise(function(resolve, reject){
+ sequence.push(1);
+ resolve("");
});
-p.then(function() {
- sequence.push(3);
-}).then(function() {
- sequence.push(5);
-}).then(function() {
- sequence.push(7);
+p.then(function () {
+ sequence.push(3);
+}).then(function () {
+ sequence.push(5);
+}).then(function () {
+ sequence.push(7);
});
-p.then(function() {
- sequence.push(4);
-}).then(function() {
- sequence.push(6);
-}).then(function() {
- sequence.push(8);
-}).then(function() {
- checkSequence(sequence, "Sequence should be as expected");
+p.then(function () {
+ sequence.push(4);
+}).then(function () {
+ sequence.push(6);
+}).then(function () {
+ sequence.push(8);
+}).then(function () {
+ checkSequence(sequence, "Sequence should be as expected");
}).then($DONE, $DONE);
sequence.push(2);