summaryrefslogtreecommitdiff
path: root/js/test/Ice/objects/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/objects/Client.js')
-rw-r--r--js/test/Ice/objects/Client.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/test/Ice/objects/Client.js b/js/test/Ice/objects/Client.js
index 0f5e5cb730b..76697dc3d17 100644
--- a/js/test/Ice/objects/Client.js
+++ b/js/test/Ice/objects/Client.js
@@ -491,6 +491,23 @@
}
out.writeLine("ok");
+ out.write("testing sending class cycle... ");
+ {
+ const rec = new Test.Recursive();
+ rec.v = rec;
+ const acceptsCycles = await initial.acceptsClassCycles();
+ try
+ {
+ await initial.setCycle(rec);
+ test(acceptsCycles);
+ }
+ catch (error)
+ {
+ test(!acceptsCycles);
+ }
+ }
+ out.writeLine("ok");
+
await initial.shutdown();
}