Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
This file is part of the KDE libraries
|
||||
SPDX-FileCopyrightText: 2015 Christoph Cullmann <cullmann@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include <QTest>
|
||||
#include <kconfiggroup.h>
|
||||
#include <ksharedconfig.h>
|
||||
|
||||
class FallbackConfigResourcesTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private Q_SLOTS:
|
||||
void initTestCase();
|
||||
void testResourceFallbackFile();
|
||||
};
|
||||
|
||||
void FallbackConfigResourcesTest::initTestCase()
|
||||
{
|
||||
QStandardPaths::setTestModeEnabled(true);
|
||||
}
|
||||
|
||||
void FallbackConfigResourcesTest::testResourceFallbackFile()
|
||||
{
|
||||
KSharedConfig::Ptr sharedConfig = KSharedConfig::openConfig(QStringLiteral("kconfigtesting"), KConfig::NoGlobals);
|
||||
QVERIFY(sharedConfig);
|
||||
|
||||
KConfigGroup cfg(sharedConfig, QStringLiteral("MainSection"));
|
||||
QCOMPARE(cfg.readEntry(QStringLiteral("TestEntry"), QStringLiteral("UnexpectedData")), QStringLiteral("ExpectedData"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(FallbackConfigResourcesTest)
|
||||
|
||||
#include "fallbackconfigresourcestest.moc"
|
||||
Reference in New Issue
Block a user