| OLD | NEW |
| 1 Tests correctness of promisified protocol commands. | 1 Tests correctness of promisified protocol commands. |
| 2 | 2 |
| 3 error: Request with id = ## failed. {"message":"this is the error message"} | 3 error: Request with id = ## failed. {"message":"this is the error message"} |
| 4 error: this is the error message | 4 commandError: then result: ["this is the error message"] |
| 5 commandError: then result: null | 5 commandArgs0: then result: [null] |
| 6 commandArgs0: then result: undefined | |
| 7 error: Protocol Error: Optional callback argument for method 'Profiler.commandAr
gs0' call must be a function but its type is 'number'. | 6 error: Protocol Error: Optional callback argument for method 'Profiler.commandAr
gs0' call must be a function but its type is 'number'. |
| 8 commandArgs0: catch result: {} | 7 commandArgs0: catch result: {} |
| 9 commandArgs1Rets0: then result: undefined | 8 commandArgs1Rets0: then result: [null] |
| 10 error: Protocol Error: Optional callback argument for method 'Profiler.commandAr
gs1Rets0' call must be a function but its type is 'number'. | 9 error: Protocol Error: Optional callback argument for method 'Profiler.commandAr
gs1Rets0' call must be a function but its type is 'number'. |
| 11 commandArgs1Rets0: catch result: {} | 10 commandArgs1Rets0: catch result: {} |
| 12 error: Protocol Error: Invalid type of argument 'arg1' for method 'Profiler.comm
andArgs1Rets0' call. It must be 'number' but it is 'string'. | 11 error: Protocol Error: Invalid type of argument 'arg1' for method 'Profiler.comm
andArgs1Rets0' call. It must be 'number' but it is 'string'. |
| 13 commandArgs1Rets0: catch result: {} | 12 commandArgs1Rets0: catch result: {} |
| 14 error: Protocol Error: Invalid number of arguments for method 'Profiler.commandA
rgs1Rets0' call. It must have the following arguments '[{"name":"arg1","type":"n
umber","optional":false}]'. | 13 error: Protocol Error: Invalid number of arguments for method 'Profiler.commandA
rgs1Rets0' call. It must have the following arguments '[{"name":"arg1","type":"n
umber","optional":false}]'. |
| 15 commandArgs1Rets0: catch result: {} | 14 commandArgs1Rets0: catch result: {} |
| 16 commandArgs1Rets1: then result: {"arg1":{"value1":234}} | 15 commandArgs1Rets1: then result: [null,{"value1":234}] |
| 17 commandArgs1Rets1: then result: {"arg1":{"value1":234}} | 16 commandArgs1Rets1: then result: [null,{"value1":234}] |
| 18 commandArgs3Rets3: then result: {"arg1":{},"arg2":345,"arg3":"alph"} | 17 commandArgs3Rets3: then result: [null,{},345,"alph"] |
| 19 commandArgs3Rets3: then result: {"arg1":{},"arg2":345} | 18 commandArgs3Rets3: then result: [null,{},345,null] |
| 20 commandArgs3Rets3: then result: {"arg1":{},"arg3":"alph"} | 19 commandArgs3Rets3: then result: [null,{},null,"alph"] |
| 21 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. | 20 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. |
| 22 commandArgs3Rets3: catch result: {} | 21 commandArgs3Rets3: catch result: {} |
| 23 commandArgs3Rets3: then result: {"arg1":{}} | 22 commandArgs3Rets3: then result: [null,{},null,null] |
| 24 error: Protocol Error: Invalid number of arguments for method 'Profiler.commandA
rgs3Rets3' call. It must have the following arguments '[{"name":"arg1","type":"o
bject","optional":false},{"name":"arg2","type":"number","optional":true},{"name"
:"arg3","type":"string","optional":true}]'. | 23 error: Protocol Error: Invalid number of arguments for method 'Profiler.commandA
rgs3Rets3' call. It must have the following arguments '[{"name":"arg1","type":"o
bject","optional":false},{"name":"arg2","type":"number","optional":true},{"name"
:"arg3","type":"string","optional":true}]'. |
| 25 commandArgs3Rets3: catch result: {} | 24 commandArgs3Rets3: catch result: {} |
| 26 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. | 25 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. |
| 27 commandArgs3Rets3: catch result: {} | 26 commandArgs3Rets3: catch result: {} |
| 28 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. | 27 error: Protocol Error: Invalid type of argument 'arg2' for method 'Profiler.comm
andArgs3Rets3' call. It must be 'number' but it is 'string'. |
| 29 commandArgs3Rets3: catch result: {} | 28 commandArgs3Rets3: catch result: {} |
| 30 | 29 |
| OLD | NEW |