summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-14 02:00:02 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-14 02:00:02 +0200
commit8bc432f2939a9eed457595d31e150b4e833332c5 (patch)
tree4422596f7b951bf904368220197984ccde67afca
parentdfd2e6d6e82a17f24478673e6da82ead4cd5caba (diff)
downloadturns-8bc432f2939a9eed457595d31e150b4e833332c5.tar.xz
turns-8bc432f2939a9eed457595d31e150b4e833332c5.zip
tests: fix wrong resource and widget names
-rw-r--r--app/tests/windows/main.cpp4
-rw-r--r--res/tests/windows.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/tests/windows/main.cpp b/app/tests/windows/main.cpp
index fa340be..bf3aba2 100644
--- a/app/tests/windows/main.cpp
+++ b/app/tests/windows/main.cpp
@@ -25,8 +25,8 @@ namespace turns::app::windows::tests
auto locale = GENERATE("en_US.UTF-8", "de_CH.UTF-8");
setlocale(LC_ALL, locale);
- auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main_window.ui");
- auto instance = Gtk::Builder::get_widget_derived<main>(builder, "main_window");
+ auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main.ui");
+ auto instance = Gtk::Builder::get_widget_derived<main>(builder, "main");
SECTION("construction via builder succeeds")
{
diff --git a/res/tests/windows.cpp b/res/tests/windows.cpp
index 20063ad..a442824 100644
--- a/res/tests/windows.cpp
+++ b/res/tests/windows.cpp
@@ -2,9 +2,9 @@
#include <gtkmm/builder.h>
-TEST_CASE("GResource for main_window")
+TEST_CASE("GResource for main")
{
- auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main_window.ui");
+ auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main.ui");
SECTION("can create Gtk.Builder for the main window UI definition")
{