mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 16:59:44 -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");
|
||||
|
||||
QCOMPARE(m_tabWidget->tabText(0), QString("&Save [locked]"));
|
||||
QCOMPARE(m_tabWidget->tabText(1), QString("&basic [New database]*"));
|
||||
QCOMPARE(m_tabWidget->tabText(0).remove('&'), QString("Save [locked]"));
|
||||
QCOMPARE(m_tabWidget->tabText(1).remove('&'), QString("basic [New database]*"));
|
||||
|
||||
QWidget* dbWidget = m_tabWidget->currentDatabaseWidget();
|
||||
QWidget* unlockDatabaseWidget = dbWidget->findChild<QWidget*>("unlockDatabaseWidget");
|
||||
@ -447,7 +447,7 @@ void TestGui::testDatabaseLocking()
|
||||
QTest::keyClicks(editPassword, "masterpw");
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user