Commit 157377b0 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Fix multi-document open test failure

Fixes the test failure introduced with
d0b9b138.
parent d0b9b138
Pipeline #55042 skipped
......@@ -660,19 +660,22 @@ void MainShellTest::testOpenTheSameFileSeveralTimes()
shell->openUrl(file2);
shell->openUrl(file2);
QVERIFY(shell->m_tabs.size() == 3);
QVERIFY(shell->m_tabs.size() == 2);
Okular::Settings::self()->setSwitchToTabIfOpen(true);
QVERIFY(shell->m_tabWidget->currentIndex() == 1);
shell->openUrl(file3);
Okular::Settings::self()->setSwitchToTabIfOpen(false);
shell->openUrl(file1);
QVERIFY(shell->m_tabWidget->currentIndex() == 0);
shell->openUrl(file2);
QVERIFY(shell->m_tabs.size() == 3);
shell->openUrl(file3);
QVERIFY(shell->m_tabWidget->currentIndex() == 3);
QVERIFY(shell->m_tabs.size() == 4);
Okular::Settings::self()->setSwitchToTabIfOpen(true);
}
void MainShellTest::testMiddleButtonCloseUndo()
......
Markdown is supported
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