mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
test: use the logical monospace font in layout fixtures
Ubuntu Mono and Consola did not exist on Windows (Consola is a typo), so the fixtures fell back to Microsoft YaHei, a proportional font. Use the monospace alias so both platforms select their system monospace font, and unify the flex title height expectation now that Windows also wraps.
This commit is contained in:
Vendored
+1
-1
@@ -2,7 +2,7 @@ text,
|
||||
body {
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
font-family: "Ubuntu Mono", "Consola";
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ text,
|
||||
body {
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
font-family: "Ubuntu Mono", "Consola";
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
scrollarea-content {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ text,
|
||||
body {
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
font-family: "Ubuntu Mono", "Consola";
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
scrollarea-content {
|
||||
|
||||
@@ -604,12 +604,8 @@ static void test_flex_layout_320(void)
|
||||
&rect);
|
||||
|
||||
rect.y += rect.height + 10;
|
||||
#ifdef _WIN32
|
||||
rect.height = 354;
|
||||
#else
|
||||
/* Ubuntu Mono wraps this title to an extra line on Linux. */
|
||||
/* monospace wraps this title to an extra line. */
|
||||
rect.height = 376;
|
||||
#endif
|
||||
w = ui_widget_get_child(container, 10);
|
||||
ctest_equal_ui_rect("$('.example')[10].border_box", &w->border_box,
|
||||
&rect);
|
||||
@@ -621,12 +617,8 @@ static void test_flex_layout_320(void)
|
||||
&rect);
|
||||
|
||||
rect.y += rect.height + 10;
|
||||
#ifdef _WIN32
|
||||
rect.height = 354;
|
||||
#else
|
||||
/* Ubuntu Mono wraps this title to an extra line on Linux. */
|
||||
/* monospace wraps this title to an extra line. */
|
||||
rect.height = 376;
|
||||
#endif
|
||||
w = ui_widget_get_child(container, 12);
|
||||
ctest_equal_ui_rect("$('.example')[12].border_box", &w->border_box,
|
||||
&rect);
|
||||
|
||||
Reference in New Issue
Block a user