aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-05-15 14:26:09 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-22 06:10:22 +0200
commit8b778c37b3c6909000966960d38acab5052ce671 (patch)
tree5765a868bb8be38b7357710d62decd291a952292 /tests/auto/quick/qquickaccessible
parent821ff61736a3cb118c4c62b49ddd580cbbedb757 (diff)
Accessibility: Implement invisible and checkable state
Change-Id: I3a079b4171e611b0136ef1582f6f16f71cf8f340 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickaccessible')
-rw-r--r--tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
index 45a9d11c69..fa2c1cfda0 100644
--- a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
+++ b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
@@ -399,16 +399,24 @@ void tst_QQuickAccessible::checkableTest()
QAI button1 = QAI(root->child(0));
QCOMPARE(button1->role(), QAccessible::Button);
QVERIFY(!(button1->state().checked));
+ QVERIFY(!(button1->state().checkable));
+
QAI button2 = QAI(root->child(1));
QVERIFY(!(button2->state().checked));
+ QVERIFY(button2->state().checkable);
+
QAI button3 = QAI(root->child(2));
QVERIFY(button3->state().checked);
+ QVERIFY(button3->state().checkable);
QAI checkBox1 = QAI(root->child(3));
QCOMPARE(checkBox1->role(), QAccessible::CheckBox);
QVERIFY((checkBox1->state().checked));
+ QVERIFY(checkBox1->state().checkable);
+
QAI checkBox2 = QAI(root->child(4));
QVERIFY(!(checkBox2->state().checked));
+ QVERIFY(checkBox2->state().checkable);
}
QTEST_MAIN(tst_QQuickAccessible)