summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebengineaccessibility
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2015-02-17 05:56:56 -0800
committerSzabolcs David <davidsz@inf.u-szeged.hu>2015-02-18 11:48:07 +0000
commitb26f697dbed3c2d12db0254a67cdf23396b91c23 (patch)
tree63633a766d956c36fc918fe418efc980f4f9d987 /tests/auto/widgets/qwebengineaccessibility
parent6717d58192a9e4fb87b4721a34f3715766863851 (diff)
Fix tst_qwebengineaccessibility API test
Implement a custom QTEST_MAIN preprocessor macro in order to support hardcoded Chromium content switches in the API tests. Force renderer accessibility to be on instead of enabling it on demand when a screen reader is detected. Change-Id: I9600ac4b26f4656104ce27ff19accbed4ea817c6 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/qwebengineaccessibility')
-rw-r--r--tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
index 96795cf6..016c4f98 100644
--- a/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
+++ b/tests/auto/widgets/qwebengineaccessibility/tst_qwebengineaccessibility.cpp
@@ -245,5 +245,8 @@ void tst_QWebEngineView::value()
QCOMPARE(progressBarValueInterface->maximumValue().toInt(), 99);
}
-QTEST_MAIN(tst_QWebEngineView)
+static QByteArrayList params = QByteArrayList()
+ << "--force-renderer-accessibility";
+
+W_QTEST_MAIN(tst_QWebEngineView, params)
#include "tst_qwebengineaccessibility.moc"