| 38 | const QString setName3 = QStringLiteral("TestSet3"); |
| 39 | |
| 40 | void TestWorkingSetController::initTestCase() |
| 41 | { |
| 42 | AutoTestShell::init({{}}); |
| 43 | TestCore::initialize(); |
| 44 | m_workingSetCtrl = Core::self()->workingSetControllerInternal(); |
| 45 | auto uiController = Core::self()->uiControllerInternal(); |
| 46 | m_area = uiController->activeArea(); |
| 47 | m_area_debug = nullptr; |
| 48 | m_documentCtrl = Core::self()->documentController(); |
| 49 | QVERIFY(m_mainWindow = uiController->activeMainWindow()); |
| 50 | auto areaDisplay = m_mainWindow->menuBar()->cornerWidget(Qt::TopRightCorner); |
| 51 | // active working set + separator + closed working sets + tool button |
| 52 | QCOMPARE(areaDisplay->layout()->count(), 4); |
| 53 | // widget that contains the buttons of the currently closed working sets |
| 54 | m_closedSets = areaDisplay->layout()->itemAt(2)->widget(); |
| 55 | } |
| 56 | |
| 57 | void TestWorkingSetController::init() |
| 58 | { |
nothing calls this directly
no test coverage detected