diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-02-17 19:56:30 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-03-23 13:57:03 +0100 |
commit | e783275cfb71e7325472b3aea54e109a7a854bf7 (patch) | |
tree | 37bf367dddc3d3cae2d64c3fb563174d4db425b0 /tests/auto/qaccessibility | |
parent | 8888cef411ce1d1fc898970429e951f9ef623b0e (diff) |
Call QAccessible::updateAccessibility when changing accessible name.
Reviewed-by: Jan-Arve
Diffstat (limited to 'tests/auto/qaccessibility')
-rw-r--r-- | tests/auto/qaccessibility/tst_qaccessibility.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qaccessibility/tst_qaccessibility.cpp b/tests/auto/qaccessibility/tst_qaccessibility.cpp index 72254bed74..f82502eec9 100644 --- a/tests/auto/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/qaccessibility/tst_qaccessibility.cpp @@ -479,6 +479,11 @@ void tst_QAccessibility::eventTest() QVERIFY_EVENT(button, 0, QAccessible::StateChanged); QVERIFY_EVENT(button, 0, QAccessible::StateChanged); + button->setAccessibleName("Olaf the second"); + QVERIFY_EVENT(button, 0, QAccessible::NameChanged); + button->setAccessibleDescription("This is a button labeled Olaf"); + QVERIFY_EVENT(button, 0, QAccessible::DescriptionChanged); + button->hide(); QVERIFY_EVENT(button, 0, QAccessible::ObjectHide); |