diff options
author | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-05-26 12:29:40 (GMT) |
---|---|---|
committer | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-05-26 12:31:49 (GMT) |
commit | 44e33b3c8d776b66b2122eb3757177dfbd7baa4c (patch) | |
tree | 74e953779dc4885eb79e8ee844d8ae79c23fe21b /tests/auto/qaccessibility/tst_qaccessibility.cpp | |
parent | 01483b3d921eea7c4e3c8fa159ab60a3ca32f1ee (diff) | |
download | Qt-44e33b3c8d776b66b2122eb3757177dfbd7baa4c.zip Qt-44e33b3c8d776b66b2122eb3757177dfbd7baa4c.tar.gz Qt-44e33b3c8d776b66b2122eb3757177dfbd7baa4c.tar.bz2 |
qaccessibility::eventTest(...) was failing.
The problem here is the fact that to test the mouse click the test
depended on some "magical" coordinates which are not valid anymore.
But since QTest::mouseClick(...) will target the center of the button,
there is no need to calculate coordinates.
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'tests/auto/qaccessibility/tst_qaccessibility.cpp')
-rw-r--r-- | tests/auto/qaccessibility/tst_qaccessibility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qaccessibility/tst_qaccessibility.cpp b/tests/auto/qaccessibility/tst_qaccessibility.cpp index e5a332a..cea259c 100644 --- a/tests/auto/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/qaccessibility/tst_qaccessibility.cpp @@ -475,7 +475,7 @@ void tst_QAccessibility::eventTest() QVERIFY_EVENT(button, 0, QAccessible::ObjectShow); button->setFocus(Qt::MouseFocusReason); QTestAccessibility::clearEvents(); - QTest::mouseClick(button, Qt::LeftButton, 0, QPoint(button->width()-7,button->height()-5)); + QTest::mouseClick(button, Qt::LeftButton, 0); QVERIFY_EVENT(button, 0, QAccessible::StateChanged); QVERIFY_EVENT(button, 0, QAccessible::StateChanged); |