From 06e5722d4e30bf84019b1a10d54a753e567b24a4 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Sun, 19 Feb 2023 17:43:25 +0100 Subject: 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 --- tests/auto/qtexttospeech/tst_qtexttospeech.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3