Changeset View
Changeset View
Standalone View
Standalone View
autotests/timelinemodeltest.cpp
Show First 20 Lines • Show All 361 Lines • ▼ Show 20 Line(s) | 240 | #endif | |||
---|---|---|---|---|---|
362 | 362 | | |||
363 | // clean up | 363 | // clean up | ||
364 | auto resId = model.index(13, 0).data(TimelineModel::BatchIdRole).toString(); | 364 | auto resId = model.index(13, 0).data(TimelineModel::BatchIdRole).toString(); | ||
365 | resMgr.removeReservation(resId); | 365 | resMgr.removeReservation(resId); | ||
366 | resId = model.index(4, 0).data(TimelineModel::BatchIdRole).toString(); | 366 | resId = model.index(4, 0).data(TimelineModel::BatchIdRole).toString(); | ||
367 | resMgr.removeReservation(resId); | 367 | resMgr.removeReservation(resId); | ||
368 | QCOMPARE(model.rowCount(), 11); | 368 | QCOMPARE(model.rowCount(), 11); | ||
369 | 369 | | |||
370 | // test case: two conesequtive location changes, the first one to an unknown location | 370 | // test case: two consecutive location changes, the first one to an unknown location | ||
371 | // result: the weather element before the first location change ends with the start of that | 371 | // result: the weather element before the first location change ends with the start of that | ||
372 | // result 2: we get a second weather element the same day after the second location change | 372 | // result 2: we get a second weather element the same day after the second location change | ||
373 | // TODO | 373 | // TODO | ||
374 | } | 374 | } | ||
375 | 375 | | |||
376 | void testMultiTraveller() | 376 | void testMultiTraveller() | ||
377 | { | 377 | { | ||
378 | using namespace KItinerary; | 378 | using namespace KItinerary; | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |