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

Method testSwitchTab

plugins/problemreporter/tests/test_problemsview.cpp:94–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void TestProblemsView::testSwitchTab()
95{
96 QTabWidget* tab = tabWidget();
97 QVERIFY(tab);
98
99 // Check that the current widget's actions are in the toolbar
100 QWidget* oldWidget = tab->currentWidget();
101 QVERIFY(oldWidget);
102 const auto oldVisibilites = visibilites(m_view->actions());
103
104 tab->setCurrentIndex(1);
105
106 // Check that the new widget's actions are in the toolbar
107 QWidget* newWidget = tab->currentWidget();
108 QVERIFY(newWidget);
109 QVERIFY(newWidget != oldWidget);
110 const auto newVisibilites = visibilites(m_view->actions());
111 QCOMPARE(oldVisibilites, newVisibilites);
112}
113
114void TestProblemsView::testRemoveModel()
115{

Callers

nothing calls this directly

Calls 4

visibilitesFunction · 0.85
setCurrentIndexMethod · 0.80
currentWidgetMethod · 0.45
actionsMethod · 0.45

Tested by

no test coverage detected