mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
relay/api: add field "modes" in GET /api/buffers
This commit is contained in:
@@ -432,6 +432,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
|
||||
WEE_CHECK_OBJ_NUM(1, json, "number");
|
||||
WEE_CHECK_OBJ_STR("formatted", json, "type");
|
||||
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
|
||||
WEE_CHECK_OBJ_STR("", json, "modes");
|
||||
WEE_CHECK_OBJ_STR("", json, "input_prompt");
|
||||
WEE_CHECK_OBJ_STR("", json, "input");
|
||||
WEE_CHECK_OBJ_NUM(0, json, "input_position");
|
||||
@@ -458,6 +459,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
|
||||
WEE_CHECK_OBJ_NUM(1, json, "number");
|
||||
WEE_CHECK_OBJ_STR("formatted", json, "type");
|
||||
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
|
||||
WEE_CHECK_OBJ_STR("", json, "modes");
|
||||
WEE_CHECK_OBJ_STR("test_prompt", json, "input_prompt");
|
||||
WEE_CHECK_OBJ_STR("test", json, "input");
|
||||
WEE_CHECK_OBJ_NUM(4, json, "input_position");
|
||||
@@ -485,6 +487,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
|
||||
WEE_CHECK_OBJ_NUM(1, json, "number");
|
||||
WEE_CHECK_OBJ_STR("formatted", json, "type");
|
||||
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
|
||||
WEE_CHECK_OBJ_STR("", json, "modes");
|
||||
WEE_CHECK_OBJ_STR("", json, "input_prompt");
|
||||
WEE_CHECK_OBJ_STR("", json, "input");
|
||||
WEE_CHECK_OBJ_NUM(0, json, "input_position");
|
||||
|
||||
Reference in New Issue
Block a user