Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/autotests/kcmtest.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
60 | m_dataDir.removeRecursively(); | 60 | m_dataDir.removeRecursively(); | ||
61 | 61 | | |||
62 | QVERIFY(m_configDir.mkpath(".")); | 62 | QVERIFY(m_configDir.mkpath(".")); | ||
63 | 63 | | |||
64 | //we need an existing colorscheme file, even if empty | 64 | //we need an existing colorscheme file, even if empty | ||
65 | QVERIFY(m_dataDir.mkpath(QStringLiteral("color-schemes"))); | 65 | QVERIFY(m_dataDir.mkpath(QStringLiteral("color-schemes"))); | ||
66 | QFile f(m_dataDir.path() + QStringLiteral("/color-schemes/TestValue.colors")); | 66 | QFile f(m_dataDir.path() + QStringLiteral("/color-schemes/TestValue.colors")); | ||
67 | f.open(QIODevice::WriteOnly); | 67 | f.open(QIODevice::WriteOnly); | ||
68 | f.write("finocchia"); // write to stderr | | |||
69 | f.close(); | 68 | f.close(); | ||
70 | 69 | | |||
71 | const QString packagePath = QFINDTESTDATA("lookandfeel"); | 70 | const QString packagePath = QFINDTESTDATA("lookandfeel"); | ||
72 | 71 | | |||
73 | Plasma::Package p = Plasma::PluginLoader::self()->loadPackage(QStringLiteral("Plasma/LookAndFeel")); | 72 | Plasma::Package p = Plasma::PluginLoader::self()->loadPackage(QStringLiteral("Plasma/LookAndFeel")); | ||
74 | p.setPath(packagePath); | 73 | p.setPath(packagePath); | ||
75 | QVERIFY(p.isValid()); | 74 | QVERIFY(p.isValid()); | ||
76 | 75 | | |||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |