Changeset View
Changeset View
Standalone View
Standalone View
plugins/genericprojectmanager/tests/test_projectload.cpp
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Line(s) | 284 | { | |||
---|---|---|---|---|---|
319 | 319 | | |||
320 | QTRY_COMPARE(root->rowCount() == 1 ? root->child(0)->baseName() : QString(), QStringLiteral("test2")); | 320 | QTRY_COMPARE(root->rowCount() == 1 ? root->child(0)->baseName() : QString(), QStringLiteral("test2")); | ||
321 | 321 | | |||
322 | // reload full model and then move dir | 322 | // reload full model and then move dir | ||
323 | project->reloadModel(); | 323 | project->reloadModel(); | ||
324 | QVERIFY(dir.rename(QStringLiteral("test2"), QStringLiteral("test3"))); | 324 | QVERIFY(dir.rename(QStringLiteral("test2"), QStringLiteral("test3"))); | ||
325 | 325 | | |||
326 | // note: this actually invalidates the root, so query that again | 326 | // note: this actually invalidates the root, so query that again | ||
327 | QTRY_VERIFY(root != project->projectItem()); | | |||
328 | root = project->projectItem(); | 327 | root = project->projectItem(); | ||
329 | QVERIFY(root); | 328 | QVERIFY(root); | ||
330 | 329 | | |||
331 | QTRY_COMPARE(root->rowCount() == 1 ? root->child(0)->baseName() : QString(), QStringLiteral("test3")); | 330 | QTRY_COMPARE(root->rowCount() == 1 ? root->child(0)->baseName() : QString(), QStringLiteral("test3")); | ||
332 | } | 331 | } | ||
333 | 332 | | |||
334 | void TestProjectLoad::addDuringImport() | 333 | void TestProjectLoad::addDuringImport() | ||
335 | { | 334 | { | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |