diff options
Diffstat (limited to 'tests/auto/qtexttospeech_qml/tst_texttospeech.qml')
-rw-r--r-- | tests/auto/qtexttospeech_qml/tst_texttospeech.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/qtexttospeech_qml/tst_texttospeech.qml b/tests/auto/qtexttospeech_qml/tst_texttospeech.qml new file mode 100644 index 0000000..09338be --- /dev/null +++ b/tests/auto/qtexttospeech_qml/tst_texttospeech.qml @@ -0,0 +1,28 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +import QtTest +import QtTextToSpeech + +TestCase { + id: testCase + name: "TextToSpeech" + + TextToSpeech { + id: tts + engine: "mock" + } + + // verifies that the mock engine is synchronous + function initTestCase() { + compare(tts.state, TextToSpeech.Ready) + } + + function test_availableLocales() { + compare(tts.availableLocales().length, 3) + } + + function test_availableVoices() { + compare(tts.availableVoices().length, 2) + } +} |