mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Add test justifying change to expected horizontal scroll position
This commit is contained in:
parent
ed16df1807
commit
b15dd3e145
@ -3913,7 +3913,8 @@ TEST_CASE("[SceneTree][TextEdit] viewport") {
|
||||
CHECK(text_edit->get_h_scroll() == 0);
|
||||
|
||||
text_edit->set_h_scroll(10000000);
|
||||
CHECK(text_edit->get_h_scroll() == 314);
|
||||
CHECK(text_edit->get_h_scroll() == 306);
|
||||
CHECK(text_edit->get_h_scroll_bar()->get_combined_minimum_size().x == 8);
|
||||
|
||||
text_edit->set_h_scroll(-100);
|
||||
CHECK(text_edit->get_h_scroll() == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user