diff options
author | Mark Spruiell <mes@zeroc.com> | 2015-12-02 11:28:31 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2015-12-02 11:28:31 -0800 |
commit | 7ea494f049785c1adf0ec7693cae7744276e42d2 (patch) | |
tree | 889a2cdbf371c155a26b6225e2b0c03d58b840ab /js/test | |
parent | Fix for ICE-6896 - sporadic binding test failure with the Python language map... (diff) | |
download | ice-7ea494f049785c1adf0ec7693cae7744276e42d2.tar.bz2 ice-7ea494f049785c1adf0ec7693cae7744276e42d2.tar.xz ice-7ea494f049785c1adf0ec7693cae7744276e42d2.zip |
Fixes for ICE-6905 - support NaN/Infinity in scripting languages
Diffstat (limited to 'js/test')
-rw-r--r-- | js/test/Ice/operations/Twoways.js | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/js/test/Ice/operations/Twoways.js b/js/test/Ice/operations/Twoways.js index a5c78738fe9..e7bbd6bedc0 100644 --- a/js/test/Ice/operations/Twoways.js +++ b/js/test/Ice/operations/Twoways.js @@ -180,27 +180,26 @@ function(ex) { test(ex instanceof Ice.MarshalException); - return prx.opFloatDouble(0, Number.MAX_VALUE * 2); + return prx.opFloatDouble(Number.NaN, Number.NaN); } ).then( - failCB, - function(ex) + function(retval, f, d) { - test(ex instanceof Ice.MarshalException); - return prx.opFloatDouble(0, -Number.MAX_VALUE * 2); + return prx.opFloatDouble(-Number.NaN, -Number.NaN); } ).then( - failCB, - function(ex) + function(retval, f, d) { - test(ex instanceof Ice.MarshalException); - return prx.opFloatDouble(0, Number.NaN); + return prx.opFloatDouble(Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY); } ).then( - failCB, - function(ex) + function(retval, f, d) + { + return prx.opFloatDouble(Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY); + } + ).then( + function(retval, f, d) { - test(ex instanceof Ice.MarshalException); return prx.opString("hello", "world"); } ).then( |