summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js')
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
index 40ef4bfd6..b1497b0a0 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js
@@ -21,33 +21,33 @@ var promise = new Promise(function(_, reject) {
var log = '';
promise.then(function() {
- log += 'A';
- }, function() {
- log += 'a';
- });
+ log += 'A';
+}, function() {
+ log += 'a';
+});
promise.then(function() {
- log += 'B';
- }, function() {
- log += 'b';
- });
+ log += 'B';
+}, function() {
+ log += 'b';
+});
promise.then(function() {
- log += 'C';
- }, function() {
- log += 'c';
- });
+ log += 'C';
+}, function() {
+ log += 'c';
+});
promise.then(function() {
- $DONE('This promise should not be fulfilled.');
- }, function() {
- if (log !== 'abc') {
- $DONE(
- 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
- 'Expected: abc. Actual: ' + log
- );
- return;
- }
+ $DONE('This promise should not be fulfilled.');
+}, function() {
+ if (log !== 'abc') {
+ $DONE(
+ 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' +
+ 'Expected: abc. Actual: ' + log
+ );
+ return;
+ }
- $DONE();
- });
+ $DONE();
+});