From 72ab1fb4c1bf363f46470816d8b914a78ac493c4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 24 May 2025 11:58:39 +0200 Subject: gui: restructure file layout and apply licenses --- gui/tests/resources.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gui/tests/resources.cpp (limited to 'gui/tests/resources.cpp') diff --git a/gui/tests/resources.cpp b/gui/tests/resources.cpp new file mode 100644 index 0000000..97a1a6b --- /dev/null +++ b/gui/tests/resources.cpp @@ -0,0 +1,26 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#include +#include + +#include + +#include + +TEST_CASE("UI resources") +{ + + auto file = GENERATE("/ch/arknet/Turns/participant_editor.ui", + "/ch/arknet/Turns/participant_row.ui", + "/ch/arknet/Turns/preferences.ui", + "/ch/arknet/Turns/tracker.ui", + "/ch/arknet/Turns/turn_order_view.ui"); + + SECTION(std::format("contains {}", file)) + { + REQUIRE(Gio::Resource::get_file_exists_global_nothrow(file)); + } +} -- cgit v1.2.3