1 Tests correctness of promisified protocol commands.
3 error: Request with id = ## failed. {"message":"this is the error message"}
4 commandError: then result: ["this is the error message"]
5 commandArgs0: then result: [null]
6 error: Protocol Error: Optional callback argument for method 'Profiler.commandArgs0' call must be a function but its type is 'number'.
7 commandArgs0: catch result: {}
8 commandArgs1Rets0: then result: [null]
9 error: Protocol Error: Optional callback argument for method 'Profiler.commandArgs1Rets0' call must be a function but its type is 'number'.
10 commandArgs1Rets0: catch result: {}
11 error: Protocol Error: Invalid type of argument 'arg1' for method 'Profiler.commandArgs1Rets0' call. It must be 'number' but it is 'string'.
12 commandArgs1Rets0: catch result: {}
13 error: Protocol Error: Invalid number of arguments for method 'Profiler.commandArgs1Rets0' call. It must have the following arguments '[{"name":"arg1","type":"number","optional":false}]'.
14 commandArgs1Rets0: catch result: {}
15 commandArgs1Rets1: then result: [null,{"value1":234}]
16 commandArgs1Rets1: then result: [null,{"value1":234}]
17 commandArgs3Rets3: then result: [null,{},345,"alph"]
18 commandArgs3Rets3: then result: [null,{},345,null]
19 commandArgs3Rets3: then result: [null,{},null,"alph"]
20 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.commandArgs3Rets3' call. It must be 'number' but it is 'string'.
21 commandArgs3Rets3: catch result: {}
22 commandArgs3Rets3: then result: [null,{},null,null]
23 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}]'.
24 commandArgs3Rets3: catch result: {}
25 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.commandArgs3Rets3' call. It must be 'number' but it is 'string'.
26 commandArgs3Rets3: catch result: {}
27 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.commandArgs3Rets3' call. It must be 'number' but it is 'string'.
28 commandArgs3Rets3: catch result: {}