summaryrefslogtreecommitdiff
path: root/js/test/Ice/acm/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/acm/Client.js')
-rw-r--r--js/test/Ice/acm/Client.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/js/test/Ice/acm/Client.js b/js/test/Ice/acm/Client.js
index b5c3bee5eba..9d4d6764bab 100644
--- a/js/test/Ice/acm/Client.js
+++ b/js/test/Ice/acm/Client.js
@@ -141,7 +141,14 @@
).then(
function(con)
{
- con.setCallback(self);
+ con.setCloseCallback(function(connection)
+ {
+ self._closed = true;
+ });
+ con.setHeartbeatCallback(function(connection)
+ {
+ ++self._heartbeat;
+ });
return self.runTestCase(self._adapter, proxy);
}
).exception(
@@ -151,14 +158,6 @@
}
);
},
- heartbeat: function(con)
- {
- ++this._heartbeat;
- },
- closed: function(con)
- {
- this._closed = true;
- },
runTestCase: function(adapter, proxy)
{
test(false); // Abstract