Changeset View
Changeset View
Standalone View
Standalone View
kdecore/tests/kconfigtest.cpp
Context not available. | |||||
479 | QCOMPARE(group.readPathEntry("withBraces", QString()), QString("file://" + HOMEPATH) ); | 479 | QCOMPARE(group.readPathEntry("withBraces", QString()), QString("file://" + HOMEPATH) ); | ||
---|---|---|---|---|---|
480 | QVERIFY(group.hasKey("URL")); | 480 | QVERIFY(group.hasKey("URL")); | ||
481 | QCOMPARE(group.readEntry("URL", QString()), QString("file://" + HOMEPATH) ); | 481 | QCOMPARE(group.readEntry("URL", QString()), QString("file://" + HOMEPATH) ); | ||
482 | #if !defined(Q_OS_WIN32) && !defined(Q_OS_MAC) | | |||
483 | // I don't know if this will work on windows | | |||
484 | // This test hangs on OS X | | |||
485 | QVERIFY(group.hasKey("hostname")); | 482 | QVERIFY(group.hasKey("hostname")); | ||
486 | QCOMPARE(group.readEntry("hostname", QString()), QHostInfo::localHostName()); | 483 | QCOMPARE(group.readEntry("hostname", QString()), QString("(hostname)")); // the $ got removed because empty var name | ||
487 | #endif | | |||
488 | QVERIFY(group.hasKey("noeol")); | 484 | QVERIFY(group.hasKey("noeol")); | ||
489 | QCOMPARE(group.readEntry("noeol", QString()), QString("foo")); | 485 | QCOMPARE(group.readEntry("noeol", QString()), QString("foo")); | ||
490 | } | 486 | } | ||
Context not available. |