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:
Liu
2026-11-19 22:49:34 +08:00
parent ce47e50ed3
commit 7db080e684
4 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ text,
body {
font-size: 14px;
line-height: 1.6;
font-family: "Ubuntu Mono", "Consola";
font-family: monospace;
}
body {
+1 -1
View File
@@ -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
View File
@@ -2,7 +2,7 @@ text,
body {
font-size: 14px;
line-height: 1.6;
font-family: "Ubuntu Mono", "Consola";
font-family: monospace;
}
scrollarea-content {
+2 -10
View File
@@ -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);