summaryrefslogtreecommitdiff
path: root/js/test/Ice/facetsBidir/TestI.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/facetsBidir/TestI.js')
-rw-r--r--js/test/Ice/facetsBidir/TestI.js70
1 files changed, 70 insertions, 0 deletions
diff --git a/js/test/Ice/facetsBidir/TestI.js b/js/test/Ice/facetsBidir/TestI.js
new file mode 100644
index 00000000000..64675fba656
--- /dev/null
+++ b/js/test/Ice/facetsBidir/TestI.js
@@ -0,0 +1,70 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+(function(global){
+ var Ice = global.Ice;
+ var Test = global.Test;
+
+ var Class = Ice.Class;
+
+ var DI = Class(Test.D, {
+ callA: function(current)
+ {
+ return "A";
+ },
+ callB: function(current)
+ {
+ return "B";
+ },
+ callC: function(current)
+ {
+ return "C";
+ },
+ callD: function(current)
+ {
+ return "D";
+ }
+ });
+
+ global.DI = DI;
+
+ var EmptyI = Class(Test.Empty, {});
+
+ global.EmptyI = EmptyI;
+
+ var FI = Class(Test.F, {
+ callE: function(current)
+ {
+ return "E";
+ },
+ callF: function(current)
+ {
+ return "F";
+ }
+ });
+
+ global.FI = FI;
+
+ var HI = Class(Test.H, {
+ callG: function(current)
+ {
+ return "G";
+ },
+ callH: function(current)
+ {
+ return "H";
+ },
+ shutdown: function(current)
+ {
+ current.adapter.getCommunicator().shutdown();
+ }
+ });
+
+ global.HI = HI;
+}(typeof (global) === "undefined" ? window : global));