| Tests correctness of promisified protocol commands. |
| |
| error: Request Profiler.commandError failed. {"message":"this is the error message"} |
| commandError: then result: null |
| commandArgs0: then result: undefined |
| error: Protocol Error: Extra 1 arguments in a call to method 'Profiler.commandArgs0'. |
| commandArgs0: then result: null |
| commandArgs1Rets0: then result: undefined |
| error: Protocol Error: Extra 1 arguments in a call to method 'Profiler.commandArgs1Rets0'. |
| commandArgs1Rets0: then result: null |
| error: Protocol Error: Invalid type of argument 'arg1' for method 'Profiler.commandArgs1Rets0' call. It must be 'number' but it is 'string'. |
| commandArgs1Rets0: then result: null |
| error: Protocol Error: Invalid number of arguments for method 'Profiler.commandArgs1Rets0' call. It must have the following arguments [{"name":"arg1","type":"number","optional":false}]'. |
| commandArgs1Rets0: then result: null |
| commandArgs1Rets1: then result: {"value1":234} |
| commandArgs1Rets1: then result: {"value1":234} |
| commandArgs3Rets3: then result: {"arg1":{},"arg2":345,"arg3":"alph"} |
| commandArgs3Rets3: then result: {} |
| commandArgs3Rets3: then result: {} |
| commandArgs3Rets3: then result: {"arg1":{},"arg2":"alph"} |
| commandArgs3Rets3: then result: {} |
| error: Protocol Error: Invalid number of arguments for method 'Profiler.commandArgs3Rets3' call. It must have the following arguments [{"name":"arg1","type":"object","optional":false},{"name":"arg2","type":"number","optional":true},{"name":"arg3","type":"string","optional":true}]'. |
| commandArgs3Rets3: then result: null |
| error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.commandArgs3Rets3' call. It must be 'number' but it is 'string'. |
| commandArgs3Rets3: then result: null |
| error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.commandArgs3Rets3' call. It must be 'number' but it is 'string'. |
| commandArgs3Rets3: then result: null |
| |