Changeset View
Changeset View
Standalone View
Standalone View
src/tests/placesitemmodeltest.cpp
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Line(s) | |||||
407 | void PlacesItemModelTest::testDefaultViewProperties_data() | 407 | void PlacesItemModelTest::testDefaultViewProperties_data() | ||
408 | { | 408 | { | ||
409 | QTest::addColumn<QUrl>("url"); | 409 | QTest::addColumn<QUrl>("url"); | ||
410 | QTest::addColumn<DolphinView::Mode>("expectedViewMode"); | 410 | QTest::addColumn<DolphinView::Mode>("expectedViewMode"); | ||
411 | QTest::addColumn<bool>("expectedPreviewShow"); | 411 | QTest::addColumn<bool>("expectedPreviewShow"); | ||
412 | QTest::addColumn<QList<QByteArray> >("expectedVisibleRole"); | 412 | QTest::addColumn<QList<QByteArray> >("expectedVisibleRole"); | ||
413 | 413 | | |||
414 | // places | 414 | // places | ||
415 | QTest::newRow("Places - Home") << QUrl::fromLocalFile(QDir::homePath()) << DolphinView::IconsView << true << QList<QByteArray>({"text"}); | 415 | QTest::newRow("Places - Home") << QUrl::fromLocalFile(QDir::homePath()) << DolphinView::Mode::IconsView << true << QList<QByteArray>({"text"}); | ||
416 | 416 | | |||
417 | // baloo -search | 417 | // baloo -search | ||
418 | QTest::newRow("Baloo - Documents") << QUrl("search:/documents") << DolphinView::DetailsView << false << QList<QByteArray>({"text", "path"}); | 418 | QTest::newRow("Baloo - Documents") << QUrl("search:/documents") << DolphinView::Mode::DetailsView << false << QList<QByteArray>({"text", "path"}); | ||
419 | 419 | | |||
420 | // audio files | 420 | // audio files | ||
421 | QTest::newRow("Places - Audio") << QUrl("search:/audio") << DolphinView::DetailsView << false << QList<QByteArray>({"text", "artist", "album"}); | 421 | QTest::newRow("Places - Audio") << QUrl("search:/audio") << DolphinView::Mode::DetailsView << false << QList<QByteArray>({"text", "artist", "album"}); | ||
422 | 422 | | |||
423 | // baloo - timeline | 423 | // baloo - timeline | ||
424 | QTest::newRow("Baloo - Last Month") << QUrl("timeline:/lastmonth") << DolphinView::DetailsView << true << QList<QByteArray>({"text", "modificationtime"}); | 424 | QTest::newRow("Baloo - Last Month") << QUrl("timeline:/lastmonth") << DolphinView::Mode::DetailsView << true << QList<QByteArray>({"text", "modificationtime"}); | ||
425 | 425 | | |||
426 | // devices | 426 | // devices | ||
427 | QTest::newRow("Devices - Floppy") << QUrl("file:///media/floppy0") << DolphinView::IconsView << true << QList<QByteArray>({"text"}); | 427 | QTest::newRow("Devices - Floppy") << QUrl("file:///media/floppy0") << DolphinView::Mode::IconsView << true << QList<QByteArray>({"text"}); | ||
428 | 428 | | |||
429 | } | 429 | } | ||
430 | 430 | | |||
431 | void PlacesItemModelTest::testDefaultViewProperties() | 431 | void PlacesItemModelTest::testDefaultViewProperties() | ||
432 | { | 432 | { | ||
433 | QFETCH(QUrl, url); | 433 | QFETCH(QUrl, url); | ||
434 | QFETCH(DolphinView::Mode, expectedViewMode); | 434 | QFETCH(DolphinView::Mode, expectedViewMode); | ||
435 | QFETCH(bool, expectedPreviewShow); | 435 | QFETCH(bool, expectedPreviewShow); | ||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |