aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/accessibility/tst_accessibility.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-09-15 15:41:14 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-09-15 14:45:16 +0000
commitd833c9224984ad408ca4074cbe147a39dabc8277 (patch)
treede3d8c7e27c5b4a48307a5e396a405653b5fd43d /tests/auto/accessibility/tst_accessibility.cpp
parent7e28ff0854b1b1e95e58a57555e51961967fdda2 (diff)
Calendar: fix compilation with QT_NO_ACCESSIBILITY
Change-Id: If840f4bf715b4290fb50388b94e33420505b1a9b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/accessibility/tst_accessibility.cpp')
-rw-r--r--tests/auto/accessibility/tst_accessibility.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/accessibility/tst_accessibility.cpp b/tests/auto/accessibility/tst_accessibility.cpp
index 31700044..3a648dee 100644
--- a/tests/auto/accessibility/tst_accessibility.cpp
+++ b/tests/auto/accessibility/tst_accessibility.cpp
@@ -90,6 +90,10 @@ void tst_accessibility::a11y_data()
QTest::newRow("ToggleButton") << "togglebutton" << 0x0000002B << "ToggleButton"; //QAccessible::Button
QTest::newRow("ToolBar") << "toolbar" << 0x00000016 << ""; //QAccessible::ToolBar
QTest::newRow("ToolButton") << "toolbutton" << 0x0000002B << "ToolButton"; //QAccessible::Button
+
+ QTest::newRow("CalendarView") << "calendarview" << 0x0 << "CalendarView"; //QAccessible::NoRole
+ QTest::newRow("DayOfWeekRow") << "dayofweekrow" << 0x0 << "DayOfWeekRow"; //QAccessible::NoRole
+ QTest::newRow("WeekNumberColumn") << "weeknumbercolumn" << 0x0 << "WeekNumberColumn"; //QAccessible::NoRole
}
void tst_accessibility::a11y()
@@ -101,7 +105,11 @@ void tst_accessibility::a11y()
QQmlComponent component(&engine);
QString fn = name;
#ifdef QT_NO_ACCESSIBILITY
- if (name == QLatin1Literal("textarea") || name == QLatin1Literal("textfield"))
+ if (name == QLatin1Literal("textarea")
+ || name == QLatin1Literal("textfield")
+ || name == QLatin1Literal("calendarview")
+ || name == QLatin1Literal("dayofweekrow")
+ || name == QLatin1Literal("weeknumbercolumn"))
fn += QLatin1Literal("-2");
#endif
component.loadUrl(testFileUrl(fn + ".qml"));