summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/accessibility/tst_accessibility.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/widgets/accessibility/tst_accessibility.cpp b/tests/auto/widgets/accessibility/tst_accessibility.cpp
index 200f9a5fb..f7e5682ef 100644
--- a/tests/auto/widgets/accessibility/tst_accessibility.cpp
+++ b/tests/auto/widgets/accessibility/tst_accessibility.cpp
@@ -477,7 +477,7 @@ void tst_Accessibility::roles_data()
QTest::newRow("ax::mojom::Role::kNavigation") << QString("<nav>a</nav>") << 0 << QAccessible::Section;
QTest::newRow("ax::mojom::Role::kNote") << QString("<div role='note'>a</div>") << 0 << QAccessible::Note;
//QTest::newRow("ax::mojom::Role::kPane"); // No mapping to ARIA role
- QTest::newRow("ax::mojom::Role::kParagraph") << QString("<p>a</p>") << 0 << QAccessible::Paragraph;
+ QTest::newRow("ax::mojom::Role::kParagraph") << QString("<p>a</p>") << 0 << QAccessible::Grouping;
QTest::newRow("ax::mojom::Role::kPopUpButton") << QString("<select><option>a</option></select>") << 1 << QAccessible::PopupMenu;
QTest::newRow("ax::mojom::Role::kPre") << QString("<pre>a</pre>") << 0 << QAccessible::Section;
//QTest::newRow("ax::mojom::Role::kPresentational") << QString("<div role='presentation'>a</div>") << 0 << QAccessible::NoRole; // FIXME: Aria role 'presentation' should work
@@ -570,7 +570,7 @@ void tst_Accessibility::objectName()
QAccessibleInterface *p = document->child(0);
QVERIFY(p);
QVERIFY(p->object());
- QCOMPARE(p->role(), QAccessible::Paragraph);
+ QCOMPARE(p->role(), QAccessible::Grouping);
QCOMPARE(p->object()->objectName(), QStringLiteral("my_id"));
}
@@ -600,7 +600,7 @@ void tst_Accessibility::crossTreeParent()
p = p->child(0);
QVERIFY(p);
QVERIFY(p->object());
- QCOMPARE(p->role(), QAccessible::Paragraph);
+ QCOMPARE(p->role(), QAccessible::Grouping);
QCOMPARE(p->parent(), subdocument);
QCOMPARE(p->parent()->parent()->parent()->parent(), view->child(0));
QCOMPARE(p->parent()->parent()->parent()->parent()->parent(), view);