summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-19 13:48:23 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-22 15:09:09 +0000
commit3edb8a8a10f8b46edd92fa90fb0179cbc4e9e9fa (patch)
tree71487514b3247c640f1d03219d6cb00bb708db83 /tests
parent9468e97532fefadc74fab8d8cf78f6d9578cb8d5 (diff)
macOS: show the test function in the title of the test window
This makes it a bit easier to know what's going on when debugging. Change-Id: I5955b9b590c7aea584748f36e4fe15d41fd05ac1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit b60c31de5295c96e9d6e49a2a233ce5ff66db605) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm
index 22ae50eb19..8dc1460585 100644
--- a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm
+++ b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm
@@ -416,7 +416,7 @@ private:
void tst_QAccessibilityMac::init()
{
m_window = new AccessibleTestWindow();
- m_window->setWindowTitle("Test window");
+ m_window->setWindowTitle(QString("Test window - %1").arg(QTest::currentTestFunction()));
m_window->show();
m_window->resize(400, 400);
@@ -481,7 +481,7 @@ void tst_QAccessibilityMac::lineEditTest()
// height of window includes title bar
QVERIFY([window rect].size.height >= 400);
- QVERIFY([window.title isEqualToString:@"Test window"]);
+ QVERIFY([window.title isEqualToString:@"Test window - lineEditTest"]);
// children of window:
AXUIElementRef lineEditElement = [window findDirectChildByRole: kAXTextFieldRole];