summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-09-17 13:25:26 +0200
committerJan Arve Sæther <jan-arve.saether@digia.com>2014-09-17 22:05:24 +0200
commitd0be032e5c0435c0cb13245a011b9159d8940d19 (patch)
tree2f923463411b1562935b7b482c725b8efb45bca7
parent1394962ceb9250979cb230046d13a42deacf996b (diff)
Fix accessibilitylinux autotest failure
Each test function is responsible for removing the children it added to m_window, since m_window is reused for each testcase. Due to this, the test QCOMPARE(children.length(), 2); failed, (it was 3). Change-Id: Idbd13214d2e841450800df0542fbdbcfaac85ce1 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r--tests/auto/other/qaccessibilitylinux/tst_qaccessibilitylinux.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/other/qaccessibilitylinux/tst_qaccessibilitylinux.cpp b/tests/auto/other/qaccessibilitylinux/tst_qaccessibilitylinux.cpp
index 4ff90e85cc..5954fa71c0 100644
--- a/tests/auto/other/qaccessibilitylinux/tst_qaccessibilitylinux.cpp
+++ b/tests/auto/other/qaccessibilitylinux/tst_qaccessibilitylinux.cpp
@@ -465,6 +465,7 @@ void tst_QAccessibilityLinux::testSlider()
valueInterface->setProperty("CurrentValue", 4);
QCOMPARE(valueInterface->property("CurrentValue").toInt(), 4);
+ m_window->clearChildren();
}
quint64 getAtspiState(QDBusInterface *interface)
@@ -513,6 +514,11 @@ void tst_QAccessibilityLinux::testFocus()
QVERIFY(lineEdit2->hasFocus());
QVERIFY(!(getAtspiState(accessibleInterfaceLineEdit1) & focusedState));
QVERIFY(getAtspiState(accessibleInterfaceLineEdit2) & focusedState);
+ m_window->clearChildren();
+ delete accessibleInterfaceLineEdit1;
+ delete accessibleInterfaceLineEdit2;
+ delete componentInterfaceLineEdit1;
+ delete componentInterfaceLineEdit2;
}
QTEST_MAIN(tst_QAccessibilityLinux)