From 53b90a52d056bc1fe3104a6d325e88c3c03ada90 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Thu, 19 May 2022 11:45:02 +0800 Subject: [PATCH] improve tests --- docs/changes.md | 2 ++ tests/widget_test.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/changes.md b/docs/changes.md index bee45252b..fbcab6941 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,6 +1,8 @@ # 最新动态 + 2022/05/19 * 完善func\_json\_save\_ex(感谢国文提供补丁)。 + * 完善测试程序 (感谢俊圣提供补丁) 2022/05/18 * 完善Windows下utf8转换。按照utf16的规则,对大于0x10000的字符值进行正确的编码 (感谢俊圣提供补丁) diff --git a/tests/widget_test.cc b/tests/widget_test.cc index 08a933f4a..cd2073d7d 100644 --- a/tests/widget_test.cc +++ b/tests/widget_test.cc @@ -749,6 +749,7 @@ TEST(Widget, load_widget) { ASSERT_STREQ(w->name, "test_view"); widget_add_child(win, w); + locale_info_change(locale_info(), "zh", "CN"); widget_dispatch(button, paint_event_init(&e, EVT_BEFORE_PAINT, w, NULL)); ASSERT_STREQ(button->text.str, L"确定");