mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 14:56:39 +02:00
relay/api: add field "tmie_displayed" in GET /api/buffers
This commit is contained in:
@@ -156,6 +156,7 @@ TEST(RelayApiMsg, BufferToJson)
|
||||
WEE_CHECK_OBJ_BOOL(0, json, "nicklist");
|
||||
WEE_CHECK_OBJ_BOOL(0, json, "nicklist_case_sensitive");
|
||||
WEE_CHECK_OBJ_BOOL(1, json, "nicklist_display_groups");
|
||||
WEE_CHECK_OBJ_BOOL(1, json, "time_displayed");
|
||||
json_local_vars = cJSON_GetObjectItem (json, "local_variables");
|
||||
CHECK(json_local_vars);
|
||||
CHECK(cJSON_IsObject (json_local_vars));
|
||||
@@ -177,14 +178,17 @@ TEST(RelayApiMsg, BufferToJson)
|
||||
cJSON_Delete (json);
|
||||
|
||||
gui_buffer_hide (gui_buffers);
|
||||
gui_buffer_set_time_for_each_line (gui_buffers, 0);
|
||||
|
||||
json = relay_api_msg_buffer_to_json (gui_buffers, 0L, 0L, 0, RELAY_API_COLORS_ANSI);
|
||||
CHECK(json);
|
||||
CHECK(cJSON_IsObject (json));
|
||||
WEE_CHECK_OBJ_BOOL(1, json, "hidden");
|
||||
WEE_CHECK_OBJ_BOOL(0, json, "time_displayed");
|
||||
cJSON_Delete (json);
|
||||
|
||||
gui_buffer_unhide (gui_buffers);
|
||||
gui_buffer_set_time_for_each_line (gui_buffers, 1);
|
||||
|
||||
/* buffer with 2 lines, without nicks */
|
||||
json = relay_api_msg_buffer_to_json (gui_buffers, 2L, 0L, 0, RELAY_API_COLORS_ANSI);
|
||||
|
||||
Reference in New Issue
Block a user