summaryrefslogtreecommitdiff
path: root/js/test/Ice/promise/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/promise/Client.js')
-rw-r--r--js/test/Ice/promise/Client.js36
1 files changed, 10 insertions, 26 deletions
diff --git a/js/test/Ice/promise/Client.js b/js/test/Ice/promise/Client.js
index 7a6b4a2efb5..7e3beff8370 100644
--- a/js/test/Ice/promise/Client.js
+++ b/js/test/Ice/promise/Client.js
@@ -833,16 +833,7 @@
test(i == 10);
test(Date.now() - start >= 450 && Date.now() - start <= 650);
}
- ).exception(
- function(ex)
- {
- promise.fail(ex);
- });
-
- //
- // Now test the static version.
- //
- p = p.then(
+ ).then(
function()
{
start = Date.now();
@@ -852,17 +843,9 @@
test(i == 10);
test(Date.now() - start >= 450 && Date.now() - start <= 650);
}
- ).exception(
- function(ex)
- {
- promise.fail(ex);
- });
- });
-
- //
- // Same but with fail
- //
- p.then(
+ )
+ }
+ ).then(
function()
{
var f = new Promise();
@@ -879,11 +862,12 @@
out.writeLine("ok");
promise.succeed();
}
- ).exception(
- function(ex)
- {
- promise.fail(ex);
- });
+ )
+ }
+ ).exception(
+ function(ex)
+ {
+ promise.fail(ex);
});
}
);