Commit 68833005 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

always start a new session

parent b90385b4
Pipeline #257868 failed with stage
in 13 minutes and 27 seconds
......@@ -285,6 +285,7 @@ void KateViewManagementTests::testTabLRUWithWidgets()
void KateViewManagementTests::testViewChangedEmittedOnAddWidget()
{
app->sessionManager()->sessionNew();
auto kmw = app->activeMainWindow();
QSignalSpy spy(kmw, &KTextEditor::MainWindow::viewChanged);
Utils::addWidget(new QWidget, kmw);
......@@ -294,6 +295,7 @@ void KateViewManagementTests::testViewChangedEmittedOnAddWidget()
void KateViewManagementTests::testWidgetAddedEmittedOnAddWidget()
{
app->sessionManager()->sessionNew();
QSignalSpy spy(app->activeMainWindow()->window(), SIGNAL(widgetAdded(QWidget *)));
Utils::addWidget(new QWidget, app->activeMainWindow());
spy.wait();
......@@ -302,6 +304,7 @@ void KateViewManagementTests::testWidgetAddedEmittedOnAddWidget()
void KateViewManagementTests::testWidgetRemovedEmittedOnRemoveWidget()
{
app->sessionManager()->sessionNew();
auto mw = app->activeMainWindow()->window();
QSignalSpy spy(mw, SIGNAL(widgetRemoved(QWidget *)));
auto w = new QWidget;
......@@ -313,6 +316,7 @@ void KateViewManagementTests::testWidgetRemovedEmittedOnRemoveWidget()
void KateViewManagementTests::testActivateNotAddedWidget()
{
app->sessionManager()->sessionNew();
auto kmw = app->activeMainWindow();
auto mw = app->activeMainWindow()->window();
QSignalSpy spy(mw, SIGNAL(widgetAdded(QWidget *)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment