diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
commit | 1597a75419cd8049252cfbca6fce6ae95ef8b2c7 (patch) | |
tree | 2b2c858df1dbe68c1d576cae06c4713fd2ad5c40 /js/test/Ice/exceptions/Client.js | |
parent | Use Ice\None with PHP namespace mapping (diff) | |
download | ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.bz2 ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.xz ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.zip |
Fix for ICE-7125 - Added support for Ice.ClassGraphDepthMax
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r-- | js/test/Ice/exceptions/Client.js | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js index a4841d61a0d..c613df0fa74 100644 --- a/js/test/Ice/exceptions/Client.js +++ b/js/test/Ice/exceptions/Client.js @@ -12,13 +12,13 @@ var Ice = require("ice").Ice; var Test = require("Test").Test; - var allTests = function(out, communicator, Test, bidir) + var allTests = function(out, communicator, Test) { class EmptyI extends Test.Empty { } - class ServantLocatorI + class ServantLocatorI { locate(curr, cookie) { @@ -355,25 +355,22 @@ ).then( function() { - if(!bidir) - { - out.write("testing memory limit marshal exception..."); - return thrower.throwMemoryLimitException(null).then( - failCB, - function(ex) - { - test(ex instanceof Ice.MemoryLimitException); - return thrower.throwMemoryLimitException(Ice.Buffer.createNative(20 * 1024)); - } - ).then( - failCB, - function(ex) - { - test(ex instanceof Ice.ConnectionLostException); - out.writeLine("ok"); - } - ); - } + out.write("testing memory limit marshal exception..."); + return thrower.throwMemoryLimitException(null).then( + failCB, + function(ex) + { + test(ex instanceof Ice.MemoryLimitException); + return thrower.throwMemoryLimitException(Ice.Buffer.createNative(20 * 1024)); + } + ).then( + failCB, + function(ex) + { + test(ex.toString().indexOf("ConnectionLostException") > 0); + out.writeLine("ok"); + } + ); } ).then( function() |