mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix tests
This commit is contained in:
@@ -205,21 +205,21 @@ def test_widget_style_size_fails_if_data_type_is_not_supported(size_dimension_in
|
||||
# short text: full width, no scrollbar
|
||||
["auto", "auto", 1, "short_text", 80, False],
|
||||
# long text: reduced width, scrollbar
|
||||
["auto", "auto", 1, "long_text", 79, True],
|
||||
["auto", "auto", 1, "long_text", 78, True],
|
||||
# short text, `scrollbar-gutter: stable`: reduced width, no scrollbar
|
||||
["auto", "stable", 1, "short_text", 79, False],
|
||||
["auto", "stable", 1, "short_text", 78, False],
|
||||
# long text, `scrollbar-gutter: stable`: reduced width, scrollbar
|
||||
["auto", "stable", 1, "long_text", 79, True],
|
||||
["auto", "stable", 1, "long_text", 78, True],
|
||||
# ------------------------------------------------
|
||||
# ----- And now let's see the behaviour with `overflow-y: scroll`:
|
||||
# short text: reduced width, scrollbar
|
||||
["scroll", "auto", 1, "short_text", 79, True],
|
||||
["scroll", "auto", 1, "short_text", 78, True],
|
||||
# long text: reduced width, scrollbar
|
||||
["scroll", "auto", 1, "long_text", 79, True],
|
||||
["scroll", "auto", 1, "long_text", 78, True],
|
||||
# short text, `scrollbar-gutter: stable`: reduced width, scrollbar
|
||||
["scroll", "stable", 1, "short_text", 79, True],
|
||||
["scroll", "stable", 1, "short_text", 78, True],
|
||||
# long text, `scrollbar-gutter: stable`: reduced width, scrollbar
|
||||
["scroll", "stable", 1, "long_text", 79, True],
|
||||
["scroll", "stable", 1, "long_text", 78, True],
|
||||
# ------------------------------------------------
|
||||
# ----- Finally, let's check the behaviour with `overflow-y: hidden`:
|
||||
# short text: full width, no scrollbar
|
||||
@@ -227,9 +227,9 @@ def test_widget_style_size_fails_if_data_type_is_not_supported(size_dimension_in
|
||||
# long text: full width, no scrollbar
|
||||
["hidden", "auto", 1, "long_text", 80, False],
|
||||
# short text, `scrollbar-gutter: stable`: reduced width, no scrollbar
|
||||
["hidden", "stable", 1, "short_text", 79, False],
|
||||
["hidden", "stable", 1, "short_text", 78, False],
|
||||
# long text, `scrollbar-gutter: stable`: reduced width, no scrollbar
|
||||
["hidden", "stable", 1, "long_text", 79, False],
|
||||
["hidden", "stable", 1, "long_text", 78, False],
|
||||
# ------------------------------------------------
|
||||
# ----- Bonus round with a custom scrollbar size, now that we can set this:
|
||||
["auto", "auto", 3, "short_text", 80, False],
|
||||
|
||||
Reference in New Issue
Block a user