diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-19 21:26:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 21:26:30 +0100 |
commit | d3129058b1e0269cbf7fe086299aa632e99ff94b (patch) | |
tree | dc8171361c94a4ed335d98b18630380e8f5dd74f /tests | |
parent | 84f5c7921780e0eccaaeb07c95e18a4ec2ac1d57 (diff) | |
parent | 84a69d7429635984999852b69046706effd2e9ad (diff) |
Merge pull request #51159 from Calinou/improve-default-project-theme
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scene/test_code_edit.h | 2 | ||||
-rw-r--r-- | tests/test_main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/scene/test_code_edit.h b/tests/scene/test_code_edit.h index be6e796da8..53ae01f9c7 100644 --- a/tests/scene/test_code_edit.h +++ b/tests/scene/test_code_edit.h @@ -3158,7 +3158,7 @@ TEST_CASE("[SceneTree][CodeEdit] symbol lookup") { code_edit->set_text("this is some text"); Point2 caret_pos = code_edit->get_caret_draw_pos(); - caret_pos.x += 55; + caret_pos.x += 58; SEND_GUI_MOUSE_EVENT(code_edit, caret_pos, MouseButton::NONE, MouseButton::NONE); CHECK(code_edit->get_text_for_symbol_lookup() == "this is s" + String::chr(0xFFFF) + "ome text"); diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 3826c03cad..0190fa5184 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -203,7 +203,7 @@ struct GodotTestCaseListener : public doctest::IReporter { memnew(InputMap); InputMap::get_singleton()->load_default(); - make_default_theme(false, Ref<Font>()); + make_default_theme(1.0, Ref<Font>()); memnew(SceneTree); SceneTree::get_singleton()->initialize(); |