From e32733998ecbe37882161c19b4233ff1aed758dd Mon Sep 17 00:00:00 2001
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
Date: Tue, 21 Mar 2017 15:11:17 +0100
Subject: [PATCH] Fix accessibility tests after 56 merge
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Editable fields are now one level less nested.

Change-Id: If4ae9e7e35a30114976c5b8e29a42f99e50bfdb1
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
---
 .../qwebengineaccessibility/tst_qwebengineaccessibility.cpp | 6 +++---
 1 file 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());
-- 
GitLab