From 8bc432f2939a9eed457595d31e150b4e833332c5 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 14 Jul 2024 02:00:02 +0200 Subject: tests: fix wrong resource and widget names --- app/tests/windows/main.cpp | 4 ++-- res/tests/windows.cpp | 4 ++-- 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
(builder, "main_window"); + auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main.ui"); + auto instance = Gtk::Builder::get_widget_derived
(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 -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") { -- cgit v1.2.3