diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-21 15:11:17 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-27 09:13:13 +0000 |
commit | e32733998ecbe37882161c19b4233ff1aed758dd (patch) | |
tree | b0f6ffd2eba646d22a65728dadc47be391127efe /tests | |
parent | d0a34e679e094759ee6d61b6da711cb2b2ed5294 (diff) |
Fix accessibility tests after 56 merge
Editable fields are now one level less nested.
Change-Id: If4ae9e7e35a30114976c5b8e29a42f99e50bfdb1
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp index 85bfa80f3..3d2c04486 100644 --- a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp +++ b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp @@ -163,7 +163,7 @@ void tst_QWebEngineAccessibility::text() // Good morning! [edit] QAccessibleInterface *grouping1 = document->child(0); - QAccessibleInterface *input1 = grouping1->child(0); + QAccessibleInterface *input1 = grouping1; QCOMPARE(input1->role(), QAccessible::EditableText); QCOMPARE(input1->text(QAccessible::Name), QString()); QCOMPARE(input1->text(QAccessible::Description), QString()); @@ -188,7 +188,7 @@ void tst_QWebEngineAccessibility::text() QCOMPARE(label1->text(QAccessible::Description), QString()); QCOMPARE(label1->text(QAccessible::Value), QString()); QAccessibleInterface *grouping3 = document->child(2); - QAccessibleInterface *input2 = grouping3->child(0); + QAccessibleInterface *input2 = grouping3; QCOMPARE(input2->role(), QAccessible::EditableText); QCOMPARE(input2->text(QAccessible::Name), QStringLiteral("Enter your name here:")); QCOMPARE(input2->text(QAccessible::Description), QStringLiteral("Provide both first and last name.")); @@ -202,7 +202,7 @@ void tst_QWebEngineAccessibility::text() // Good day! [edit] QAccessibleInterface *grouping5 = document->child(4); - QAccessibleInterface *input3 = grouping5->child(0); + QAccessibleInterface *input3 = grouping5; QCOMPARE(input3->role(), QAccessible::EditableText); QCOMPARE(input3->text(QAccessible::Name), QStringLiteral("day")); QCOMPARE(input3->text(QAccessible::Description), QString()); |