fix tests

This commit is contained in:
lixianjing 2021-05-21 10:12:48 +08:00
parent a4238f527d
commit e5a28c3159

View File

@ -168,9 +168,10 @@ TEST(ImageValue, paint) {
widget_set_prop_str(w, WIDGET_PROP_FORMAT, "%02d");
widget_set_prop_str(w, WIDGET_PROP_IMAGE, "num_");
lcd_log_reset(lcd);
widget_on_paint_self(w, &c);
ASSERT_EQ(lcd_log_get_commands(lcd),
"bf();dg(0,0,30,48,55,16,30,48);dg(0,0,30,48,85,16,30,48);dg(0,0,30,48,115,16,30,48);");
"dg(0,0,30,48,55,16,30,48);dg(0,0,30,48,85,16,30,48);dg(0,0,30,48,115,16,30,48);");
lcd_log_reset(lcd);
widget_set_style_str(w, "text_align_h", "left");