diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-02-17 18:56:30 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-03-23 12:57:03 (GMT) |
commit | e783275cfb71e7325472b3aea54e109a7a854bf7 (patch) | |
tree | 37bf367dddc3d3cae2d64c3fb563174d4db425b0 /tests/auto/qaccessibility | |
parent | 8888cef411ce1d1fc898970429e951f9ef623b0e (diff) | |
download | Qt-e783275cfb71e7325472b3aea54e109a7a854bf7.zip Qt-e783275cfb71e7325472b3aea54e109a7a854bf7.tar.gz Qt-e783275cfb71e7325472b3aea54e109a7a854bf7.tar.bz2 |
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 72254be..f82502e 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); |