THRIFT-2976: add browserify support and tests
Client: nodejs
Patch: Andrew de Andrade
diff --git a/lib/nodejs/test/test_handler.js b/lib/nodejs/test/test_handler.js
index 83b7d41..de6f503 100644
--- a/lib/nodejs/test/test_handler.js
+++ b/lib/nodejs/test/test_handler.js
@@ -25,7 +25,7 @@
function makeSyncHandler(label) {
return function(thing) {
- console.log(label + '(\'' + thing + '\')');
+ //console.log(label + '(\'' + thing + '\')');
return thing;
}
}
@@ -72,7 +72,7 @@
];
function testVoid() {
- console.log('testVoid()');
+ //console.log('testVoid()');
}
function testVoidAsync(result) {
@@ -80,7 +80,7 @@
}
function testMapMap(hello) {
- console.log('testMapMap(' + hello + ')');
+ //console.log('testMapMap(' + hello + ')');
var mapmap = [];
var pos = [];
@@ -96,9 +96,9 @@
}
function testInsanity(argument) {
- console.log('testInsanity(');
- console.log(argument);
- console.log(')');
+ //console.log('testInsanity(');
+ //console.log(argument);
+ //console.log(')');
var hello = new ttypes.Xtruct();
hello.string_thing = 'Hello2';
@@ -131,13 +131,13 @@
insane[1] = first_map;
insane[2] = second_map;
- console.log('insane result:');
- console.log(insane);
+ //console.log('insane result:');
+ //console.log(insane);
return insane;
}
function testMulti(arg0, arg1, arg2, arg3, arg4, arg5) {
- console.log('testMulti()');
+ //console.log('testMulti()');
var hello = new ttypes.Xtruct();
hello.string_thing = 'Hello2';
@@ -153,7 +153,7 @@
}
function testException(arg) {
- console.log('testException('+arg+')');
+ //console.log('testException('+arg+')');
if (arg === 'Xception') {
var x = new ttypes.Xception();
x.errorCode = 1001;
@@ -167,7 +167,7 @@
}
function testExceptionAsync(arg, result) {
- console.log('testException('+arg+')');
+ //console.log('testException('+arg+')');
if (arg === 'Xception') {
var x = new ttypes.Xception();
x.errorCode = 1001;
@@ -181,7 +181,7 @@
}
function testMultiException(arg0, arg1) {
- console.log('testMultiException(' + arg0 + ', ' + arg1 + ')');
+ //console.log('testMultiException(' + arg0 + ', ' + arg1 + ')');
if (arg0 === ('Xception')) {
var x = new ttypes.Xception();
x.errorCode = 1001;
@@ -201,7 +201,7 @@
}
function testMultiExceptionAsync(arg0, arg1, result) {
- console.log('testMultiException(' + arg0 + ', ' + arg1 + ')');
+ //console.log('testMultiException(' + arg0 + ', ' + arg1 + ')');
if (arg0 === ('Xception')) {
var x = new ttypes.Xception();
x.errorCode = 1001;
@@ -221,7 +221,7 @@
}
function testOneway(sleepFor) {
- console.log('testOneway(' + sleepFor + ') => JavaScript (like Rust) never sleeps!');
+ //console.log('testOneway(' + sleepFor + ') => JavaScript (like Rust) never sleeps!');
}
function testOnewayAsync(sleepFor, result) {