summaryrefslogtreecommitdiff
path: root/js/test/Ice/scope/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/scope/Client.js')
-rw-r--r--js/test/Ice/scope/Client.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/js/test/Ice/scope/Client.js b/js/test/Ice/scope/Client.js
index 7327149b4b6..f0f72f42697 100644
--- a/js/test/Ice/scope/Client.js
+++ b/js/test/Ice/scope/Client.js
@@ -11,6 +11,7 @@
{
const Ice = require("ice").Ice;
const Test = require("Test").Test;
+ const Inner = require("Test").Inner;
async function allTests(out, communicator)
{
@@ -124,6 +125,39 @@
}
{
+ const i4 = await Inner.Test.Inner2.IPrx.checkedCast(communicator.stringToProxy("i4:default -p 12010"));
+ const s1 = new Test.S(0);
+
+ const [s2, s3] = await i4.opS(s1);
+ test(s2.equals(s1));
+ test(s3.equals(s1));
+
+ const [sseq2, sseq3] = await i4.opSSeq([s1]);
+ test(sseq2[0].equals(s1));
+ test(sseq3[0].equals(s1));
+
+ const smap1 = new Map([["a", s1]]);
+ const [smap2, smap3] = await i4.opSMap(smap1);
+ test(smap2.get("a").equals(s1));
+ test(smap3.get("a").equals(s1));
+
+ const c1 = new Test.C(s1);
+
+ const [c2, c3] = await i4.opC(c1);
+ test(c2.s.equals(s1));
+ test(c3.s.equals(s1));
+
+ const [cseq2, cseq3] = await i4.opCSeq([c1]);
+ test(cseq2[0].s.equals(s1));
+ test(cseq3[0].s.equals(s1));
+
+ const cmap1 = new Map([["a", c1]]);
+ const [cmap2, cmap3] = await i4.opCMap(cmap1);
+ test(cmap2.get("a").s.equals(s1));
+ test(cmap3.get("a").s.equals(s1));
+ }
+
+ {
const i1 = await Test.IPrx.checkedCast(communicator.stringToProxy("i1:default -p 12010"));
await i1.shutdown();
}