From 5d8f799a1171f92054d4b45ba130cd7fdad0bd01 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 23 May 2025 14:04:27 +0200 Subject: app: prepare restructuring --- ui/tests/tracker.cpp | 79 ---------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 ui/tests/tracker.cpp (limited to 'ui/tests/tracker.cpp') diff --git a/ui/tests/tracker.cpp b/ui/tests/tracker.cpp deleted file mode 100644 index 0d5e983..0000000 --- a/ui/tests/tracker.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include "turns/ui/tracker.hpp" - -#include "turns/core/settings.hpp" -#include "turns/lang/messages.hpp" - -#include -#include - -#include -#include - -#include -#include -#include -#include - -#include -#include - -#include -#include - -namespace turns::ui::tests -{ - - TEST_CASE("A freshly constructed tracker window", "[windows]") - { - auto locale = GENERATE("en_US.UTF-8", "de_CH.UTF-8"); - setlocale(LC_ALL, locale); - - auto app = Adwaita::Application::create("ch.arknet.Turns.test"); - auto instance = std::make_shared(app, core::get_settings()); - - SECTION("was successfully constructed") - { - REQUIRE(instance); - } - - // SECTION("has a non-empty subtitle") - // { - // auto widget = instance->get_ builder->get_widget("title"); - // REQUIRE_FALSE(widget->get_subtitle().empty()); - // } - - // SECTION("has its subtitle set according to the active language") - // { - // auto widget = builder->get_widget("title"); - // REQUIRE(widget->get_subtitle() == _(lang::no_active_turn_order)); - // } - - // SECTION("has a non-empty title") - // { - // auto widget = builder->get_widget("title"); - // REQUIRE_FALSE(widget->get_title().empty()); - // } - - // SECTION("has its title set according to the active language") - // { - // auto widget = builder->get_widget("title"); - // REQUIRE(widget->get_title() == _(lang::turns)); - // } - - // SECTION("has its add_participant button's tooltip set according to the active language") - // { - // auto widget = builder->get_widget("add_participant"); - // REQUIRE(widget->get_tooltip_text() == _(lang::add_participant)); - // } - - // SECTION("as its open_main_menu button's tooltip set according to the active language") - // { - // auto widget = builder->get_widget("open_main_menu"); - // REQUIRE(widget->get_tooltip_text() == _(lang::main_menu)); - // } - - // instance->destroy(); - // delete instance; - } - -} // namespace turns::ui::tests \ No newline at end of file -- cgit v1.2.3