diff options
Diffstat (limited to 'src/settings/test/test_settings.cpp')
-rw-r--r-- | src/settings/test/test_settings.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/settings/test/test_settings.cpp b/src/settings/test/test_settings.cpp index 72582bc7..2ca5ba1a 100644 --- a/src/settings/test/test_settings.cpp +++ b/src/settings/test/test_settings.cpp @@ -1,4 +1,13 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> + * ============================================================ */ + #include <QApplication> +#include <QDir> +#include <QStandardPaths> #include <gtest/gtest.h> #include <iostream> @@ -23,6 +32,13 @@ TEST(settings, getFont) EXPECT_EQ(fixed.styleHint(), QFont::Monospace) << qUtf8Printable(fixed.toString()); } +TEST(settings, settingsPath) +{ + const auto path = QDir(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)).filePath("rekonqrc"); + EXPECT_FALSE(path.isEmpty()); + EXPECT_TRUE(path.endsWith("rekonqrc")); +} + TEST(settings, Settings) { Settings settings(settingsFile); |