diff options
Diffstat (limited to 'js/test/Ice/proxy/Client.js')
-rw-r--r-- | js/test/Ice/proxy/Client.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/test/Ice/proxy/Client.js b/js/test/Ice/proxy/Client.js index d31c1f9b1b1..9bb381e7e30 100644 --- a/js/test/Ice/proxy/Client.js +++ b/js/test/Ice/proxy/Client.js @@ -1054,6 +1054,19 @@ ).then( function() { + if(typeof window !== 'undefined') + { + // + // Ensure that TCP endpoints are skipped when runing in a browser. + // + var p = communicator.stringToProxy("test:tcp -p 12010:ws -p 12010"); + p = p.ice_endpointSelection(Ice.EndpointSelectionType.Ordered); + return p.ice_ping(); + } + } + ).then( + function() + { out.writeLine("ok"); var derived = Test.MyDerivedClassPrx.uncheckedCast(communicator.stringToProxy("test:default -p 12010")); return derived.shutdown(); |