summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
index 76b668b2..9fd008ab 100644
--- a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
+++ b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
@@ -98,15 +98,18 @@ void tst_QWebEngineView::hierarchy()
QAccessibleInterface *document = view->child(0);
QCOMPARE(document->role(), QAccessible::Document);
QCOMPARE(document->parent(), view);
+ QCOMPARE(view->indexOfChild(document), 0);
QCOMPARE(document->childCount(), 1);
QAccessibleInterface *grouping = document->child(0);
QVERIFY(grouping);
QCOMPARE(grouping->parent(), document);
+ QCOMPARE(document->indexOfChild(grouping), 0);
QCOMPARE(grouping->childCount(), 2);
QAccessibleInterface *text = grouping->child(0);
QCOMPARE(text->role(), QAccessible::StaticText);
QCOMPARE(text->parent(), grouping);
+ QCOMPARE(grouping->indexOfChild(text), 0);
QEXPECT_FAIL("", "FIXME: static text should probably not have a child element", Continue);
QCOMPARE(text->childCount(), 0);
QCOMPARE(text->text(QAccessible::Name), QString());
@@ -116,6 +119,7 @@ void tst_QWebEngineView::hierarchy()
QAccessibleInterface *input = grouping->child(1);
QCOMPARE(input->role(), QAccessible::EditableText);
QCOMPARE(input->parent(), grouping);
+ QCOMPARE(grouping->indexOfChild(input), 1);
QCOMPARE(input->childCount(), 0);
QCOMPARE(input->text(QAccessible::Name), QString());
QCOMPARE(input->text(QAccessible::Description), QString());