mirror of https://github.com/cutefishos/settings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
624 B
C++
19 lines
624 B
C++
// SPDX-FileCopyrightText: 2026 Reion Wong <reionwong@gmail.com>
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <algorithm>
|
|
|
|
#include "pages/icontheme/iconthemes.h"
|
|
#include "pagetest.h"
|
|
|
|
TEST(IconThemePage, ListsTheInstalledThemes)
|
|
{
|
|
const auto themes = settings::IconTheme::installed();
|
|
// hicolor is a fallback, not a theme to choose.
|
|
EXPECT_TRUE(std::none_of(themes.begin(), themes.end(), [](const auto& theme) { return theme.id == "hicolor"; }));
|
|
PageFixture page("appearance", "icontheme");
|
|
EXPECT_EQ(page.count("settings::ImageSelectionItem"), int(themes.size()));
|
|
}
|