| 323 | } |
| 324 | |
| 325 | void TestAreaOperation::checkArea1(MainWindow* mw) |
| 326 | { |
| 327 | const auto* const splitter = checkAreaCommon(mw); |
| 328 | RETURN_IF_TEST_FAILED(); |
| 329 | auto* const area = mw->area(); |
| 330 | |
| 331 | //check that we have a container and 4 views inside |
| 332 | auto *container = splitter->findChild<Sublime::Container*>(); |
| 333 | QVERIFY(container); |
| 334 | ViewCounter c; |
| 335 | area->walkViews(c, area->rootIndex()); |
| 336 | QCOMPARE(container->count(), c.count); |
| 337 | for (int i = 0; i < container->count(); ++i) |
| 338 | QVERIFY(container->widget(i) != nullptr); |
| 339 | } |
| 340 | |
| 341 | void TestAreaOperation::checkArea2(MainWindow *mw) |
| 342 | { |