improve tests

This commit is contained in:
lixianjing 2022-05-19 11:45:02 +08:00
parent f05f57ddf2
commit 53b90a52d0
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# 最新动态
2022/05/19
* 完善func\_json\_save\_ex感谢国文提供补丁
* 完善测试程序 (感谢俊圣提供补丁)
2022/05/18
* 完善Windows下utf8转换。按照utf16的规则对大于0x10000的字符值进行正确的编码 (感谢俊圣提供补丁)

View File

@ -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"确定");