summaryrefslogtreecommitdiff
path: root/js/test/Ice/acm/Client.js
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2015-12-23 14:48:40 -0500
committerJoe George <joe@zeroc.com>2015-12-24 10:01:11 -0500
commite84da5f580821cae8dab292e19cc1296c07a8ed5 (patch)
tree1e8783c55c7dccd5adda2b87b47b8a7c118a1147 /js/test/Ice/acm/Client.js
parentFixes related to EnableSharedFromThis (diff)
downloadice-e84da5f580821cae8dab292e19cc1296c07a8ed5.tar.bz2
ice-e84da5f580821cae8dab292e19cc1296c07a8ed5.tar.xz
ice-e84da5f580821cae8dab292e19cc1296c07a8ed5.zip
ICE-6898 - "Delegate" functions for ACM callbacks
- Add delegate local interfaces CloseCallback and HeartbeatCallback and remove ConnectionCallback. - Replace setCallback by setCloseCallback and setHeartbeatCallback
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 81379ad2507..8a94c51f313 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