summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebengineaccessibility
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2014-09-15 17:04:41 +0200
committerMichael Bruning <michael.bruning@digia.com>2014-09-16 10:36:28 +0200
commitf8dc90ff4face292f4056ca57e566a0aa0efc005 (patch)
tree0c336a3eff75269581dfe5a1c2269f2b1761770b /tests/auto/widgets/qwebengineaccessibility
parentfa2135e21851f63ad1c4dc54bd3222c3d642ca56 (diff)
[Tests] Change expected QAccessible::role to WebDocument.
That is the role that is returned from the WebView. Change-Id: I9ab817e259c8fe69d756ffa576082066cf6b4ea8 Reviewed-by: Andras Becsi <andras.becsi@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/widgets/qwebengineaccessibility')
-rw-r--r--tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
index c61b5eff..2a92693e 100644
--- a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
+++ b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
@@ -75,7 +75,7 @@ void tst_QWebEngineView::noPage()
QCOMPARE(view->role(), QAccessible::Client);
QCOMPARE(view->childCount(), 1);
QAccessibleInterface *document = view->child(0);
- QCOMPARE(document->role(), QAccessible::Document);
+ QCOMPARE(document->role(), QAccessible::WebDocument);
QCOMPARE(document->parent(), view);
QCOMPARE(document->childCount(), 0);
}
@@ -97,7 +97,7 @@ void tst_QWebEngineView::hierarchy()
// Wait for accessibility to be fully initialized
QTRY_VERIFY(view->child(0)->childCount() == 1);
QAccessibleInterface *document = view->child(0);
- QCOMPARE(document->role(), QAccessible::Document);
+ QCOMPARE(document->role(), QAccessible::WebDocument);
QCOMPARE(document->parent(), view);
QCOMPARE(view->indexOfChild(document), 0);
QCOMPARE(document->childCount(), 1);