summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-19 17:43:25 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-21 09:12:19 +0100
commit06e5722d4e30bf84019b1a10d54a753e567b24a4 (patch)
treec731316122443e83ad73047baae210d1f5d72299 /tests
parent9cc9f6ccd8cb5e8d122eae38c0ca0e405edaecab (diff)
Allow tts engines to override capabilities
Some engines might support capabilities depending on the runtime environment, such as the exact operating system version. Allow engines to override a virtual capabilities() method for that. By default, the meta-data from the plugin is used. Remove hard-coded special cases for older Android version from the test. Change-Id: I44713b3c5323f6a83713f1e2465920ab21788bab Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtexttospeech/tst_qtexttospeech.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/qtexttospeech/tst_qtexttospeech.cpp b/tests/auto/qtexttospeech/tst_qtexttospeech.cpp
index fd355cf..9ebb507 100644
--- a/tests/auto/qtexttospeech/tst_qtexttospeech.cpp
+++ b/tests/auto/qtexttospeech/tst_qtexttospeech.cpp
@@ -505,8 +505,6 @@ void tst_QTextToSpeech::sayingWord()
QFETCH_GLOBAL(QString, engine);
if (engine != "mock" && !hasDefaultAudioOutput())
QSKIP("No audio device present");
- if (engine == "android" && QOperatingSystemVersion::current() < QOperatingSystemVersion::Android10)
- QSKIP("Only testing on recent Android versions");
QFETCH(QString, text);
@@ -566,8 +564,6 @@ void tst_QTextToSpeech::sayingWordWithPause()
QSKIP("No audio device present");
if (engine == "macos")
QSKIP("macos engine's pause support is faulty");
- if (engine == "android" && QOperatingSystemVersion::current() < QOperatingSystemVersion::Android10)
- QSKIP("Only testing on recent Android versions");
QFETCH(QStringList, words);
QFETCH(int, pauseAt);
@@ -627,8 +623,6 @@ void tst_QTextToSpeech::synthesize()
QFETCH_GLOBAL(QString, engine);
if (engine != "mock" && !hasDefaultAudioOutput())
QSKIP("No audio device present");
- if (engine == "android" && QOperatingSystemVersion::current() < QOperatingSystemVersion::Android10)
- QSKIP("Only testing on recent Android versions");
QFETCH(QString, text);