Changeset View
Changeset View
Standalone View
Standalone View
tests/testlib/akonadistoragetestbase.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | AkonadiStorageTestBase::AkonadiStorageTestBase(QObject *parent) | 54 | AkonadiStorageTestBase::AkonadiStorageTestBase(QObject *parent) | ||
55 | : QObject(parent) | 55 | : QObject(parent) | ||
56 | { | 56 | { | ||
57 | qRegisterMetaType<Akonadi::Collection>(); | 57 | qRegisterMetaType<Akonadi::Collection>(); | ||
58 | qRegisterMetaType<Akonadi::Item>(); | 58 | qRegisterMetaType<Akonadi::Item>(); | ||
59 | qRegisterMetaType<Akonadi::Tag>(); | 59 | qRegisterMetaType<Akonadi::Tag>(); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | void AkonadiStorageTestBase::cleanupTestCase() | ||||
63 | { | ||||
64 | // Give a chance for jobs still waiting for an event loop | ||||
65 | // run to be deleted through deleteLater() | ||||
66 | QTest::qWait(10); | ||||
67 | } | ||||
68 | | ||||
62 | void AkonadiStorageTestBase::dumpTree() | 69 | void AkonadiStorageTestBase::dumpTree() | ||
63 | { | 70 | { | ||
64 | TestLib::AkonadiDebug::dumpTree(createStorage()); | 71 | TestLib::AkonadiDebug::dumpTree(createStorage()); | ||
65 | } | 72 | } | ||
66 | 73 | | |||
67 | void AkonadiStorageTestBase::shouldListCollections_data() | 74 | void AkonadiStorageTestBase::shouldListCollections_data() | ||
68 | { | 75 | { | ||
69 | QTest::addColumn<Akonadi::Collection>("collection"); | 76 | QTest::addColumn<Akonadi::Collection>("collection"); | ||
▲ Show 20 Lines • Show All 1397 Lines • Show Last 20 Lines |