MCPcopy Create free account
hub / github.com/KDE/kdevelop / initTestCase

Method initTestCase

kdevplatform/shell/tests/test_workingsets.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38const QString setName3 = QStringLiteral("TestSet3");
39
40void 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
57void TestWorkingSetController::init()
58{

Callers

nothing calls this directly

Calls 10

initializeFunction · 0.85
uiControllerInternalMethod · 0.80
activeAreaMethod · 0.80
documentControllerMethod · 0.80
itemAtMethod · 0.80
initFunction · 0.50
activeMainWindowMethod · 0.45
countMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected