mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix mouse-button-mask on button release in unit test
On mouse-button release, the mask is 0.
This commit is contained in:
parent
a05670c617
commit
39d79ce217
2 changed files with 2 additions and 1 deletions
|
|
@ -1161,7 +1161,7 @@ TEST_CASE("[SceneTree][TextEdit] text entry") {
|
|||
SEND_GUI_MOUSE_MOTION_EVENT(target_text_edit, line_0, MouseButtonMask::LEFT, Key::NONE);
|
||||
CHECK(text_edit->get_viewport()->gui_is_dragging());
|
||||
|
||||
SEND_GUI_MOUSE_BUTTON_RELEASED_EVENT(target_text_edit, line_0, MouseButton::LEFT, MouseButtonMask::LEFT, Key::NONE);
|
||||
SEND_GUI_MOUSE_BUTTON_RELEASED_EVENT(target_text_edit, line_0, MouseButton::LEFT, MouseButtonMask::NONE, Key::NONE);
|
||||
|
||||
CHECK_FALSE(text_edit->get_viewport()->gui_is_dragging());
|
||||
CHECK(text_edit->get_text() == "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue