summaryrefslogtreecommitdiff
path: root/js/test/Ice/proxy/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/proxy/Client.js')
-rw-r--r--js/test/Ice/proxy/Client.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/js/test/Ice/proxy/Client.js b/js/test/Ice/proxy/Client.js
index f2f9af96e2d..c3833d1d8ac 100644
--- a/js/test/Ice/proxy/Client.js
+++ b/js/test/Ice/proxy/Client.js
@@ -7,12 +7,10 @@
//
// **********************************************************************
-(function(global){
- var require = typeof(module) !== "undefined" ? module.require : function(){};
- require("Ice/Ice");
- require("Test");
- var Ice = global.Ice;
- var Test = global.Test;
+(function(module, require, exports)
+{
+ var Ice = require("icejs").Ice;
+ var Test = require("Test").Test;
var Promise = Ice.Promise;
function allTests(communicator, out)
@@ -1067,6 +1065,9 @@
});
};
- global.__test__ = run;
- global.__runServer__ = true;
-}(typeof (global) === "undefined" ? window : global));
+ exports.__test__ = run;
+ exports.__runServer__ = true;
+}
+(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined,
+ typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? require : window.Ice.__require,
+ typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? exports : window));