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. Pick-to: 6.5 Change-Id: I5955b9b590c7aea584748f36e4fe15d41fd05ac1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
e4e186771e
commit
b60c31de52
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user