From f8dc90ff4face292f4056ca57e566a0aa0efc005 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@digia.com>
Date: Mon, 15 Sep 2014 17:04:41 +0200
Subject: [PATCH] [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>
---
 .../qwebengineaccessibility/tst_qwebengineaccessibility.cpp   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
index c61b5eff7..2a92693e1 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);
-- 
GitLab