mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-17 13:02:49 -05:00
Make TestGui agnostic to added "&" in tab title.
Fixes tests on OS X / Qt 5.5.0.
This commit is contained in:
parent
aab2b7df1c
commit
625e9a2547
@ -436,8 +436,8 @@ void TestGui::testDatabaseLocking()
|
|||||||
|
|
||||||
triggerAction("actionLockDatabases");
|
triggerAction("actionLockDatabases");
|
||||||
|
|
||||||
QCOMPARE(m_tabWidget->tabText(0), QString("&Save [locked]"));
|
QCOMPARE(m_tabWidget->tabText(0).remove('&'), QString("Save [locked]"));
|
||||||
QCOMPARE(m_tabWidget->tabText(1), QString("&basic [New database]*"));
|
QCOMPARE(m_tabWidget->tabText(1).remove('&'), QString("basic [New database]*"));
|
||||||
|
|
||||||
QWidget* dbWidget = m_tabWidget->currentDatabaseWidget();
|
QWidget* dbWidget = m_tabWidget->currentDatabaseWidget();
|
||||||
QWidget* unlockDatabaseWidget = dbWidget->findChild<QWidget*>("unlockDatabaseWidget");
|
QWidget* unlockDatabaseWidget = dbWidget->findChild<QWidget*>("unlockDatabaseWidget");
|
||||||
@ -447,7 +447,7 @@ void TestGui::testDatabaseLocking()
|
|||||||
QTest::keyClicks(editPassword, "masterpw");
|
QTest::keyClicks(editPassword, "masterpw");
|
||||||
QTest::keyClick(editPassword, Qt::Key_Enter);
|
QTest::keyClick(editPassword, Qt::Key_Enter);
|
||||||
|
|
||||||
QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()), QString("&basic [New database]*"));
|
QCOMPARE(m_tabWidget->tabText(m_tabWidget->currentIndex()).remove('&'), QString("basic [New database]*"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestGui::cleanupTestCase()
|
void TestGui::cleanupTestCase()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user