summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-02-08 01:17:40 +0100
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-02-08 01:17:40 +0100
commit39d79ce2170dd4b62d739e30e430991a70913173 (patch)
treeae0da0586eae948ca94ab1b5ecdf3d61c7b24fc2 /tests
parenta05670c617abc1df93ebac5afacf3e6c48008a99 (diff)
Fix mouse-button-mask on button release in unit test
On mouse-button release, the mask is 0.
Diffstat (limited to 'tests')
-rw-r--r--tests/scene/test_text_edit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scene/test_text_edit.h b/tests/scene/test_text_edit.h
index 77312a8604..a9730ce820 100644
--- a/tests/scene/test_text_edit.h
+++ b/tests/scene/test_text_edit.h
@@ -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() == "");