From f131cad3e5aa5df1465bc027489c8c8947151d3f Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Fri, 9 Aug 2019 00:32:18 +0200 Subject: TESTBED: Improve some TTS tests --- engines/testbed/speech.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/testbed') diff --git a/engines/testbed/speech.cpp b/engines/testbed/speech.cpp index 216c9e4a69..282b4d157f 100644 --- a/engines/testbed/speech.cpp +++ b/engines/testbed/speech.cpp @@ -164,13 +164,14 @@ TestExitStatus Speechtests::testPauseResume() { return kTestSkipped; } - ttsMan->say("Testing text to speech, the speech should pause after a second and then resume again."); + ttsMan->say("Testing text to speech, the speech should pause after a second"); g_system->delayMillis(1000); ttsMan->pause(); if (!ttsMan->isPaused()) { Testsuite::logDetailedPrintf("TTS pause failed\n"); return kTestFailed; } + ttsMan->say("and then resume again", Common::TextToSpeechManager::QUEUE); g_system->delayMillis(1000); if (!ttsMan->isPaused()) { Testsuite::logDetailedPrintf("TTS pause failed\n"); @@ -448,10 +449,13 @@ TestExitStatus Speechtests::testInterruptNoRepeat() { } ttsMan->say("This is the first sentence, this should get interrupted"); + ttsMan->say("Failure", Common::TextToSpeechManager::QUEUE); g_system->delayMillis(1000); ttsMan->say("This is the second sentence, it should play only once", Common::TextToSpeechManager::INTERRUPT_NO_REPEAT); + ttsMan->say("Failure", Common::TextToSpeechManager::QUEUE); g_system->delayMillis(1000); ttsMan->say("This is the second sentence, it should play only once", Common::TextToSpeechManager::INTERRUPT_NO_REPEAT); + ttsMan->say("Failure", Common::TextToSpeechManager::QUEUE); g_system->delayMillis(1000); ttsMan->say("This is the second sentence, it should play only once", Common::TextToSpeechManager::INTERRUPT_NO_REPEAT); waitForSpeechEnd(ttsMan); -- cgit v1.2.3