aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-09 00:32:18 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitf131cad3e5aa5df1465bc027489c8c8947151d3f (patch)
tree17ab952679e80a311842f99c1700922d6056da29 /engines/testbed
parent38e769430aedab13ad5c5b92d246d5393867a003 (diff)
downloadscummvm-rg350-f131cad3e5aa5df1465bc027489c8c8947151d3f.tar.gz
scummvm-rg350-f131cad3e5aa5df1465bc027489c8c8947151d3f.tar.bz2
scummvm-rg350-f131cad3e5aa5df1465bc027489c8c8947151d3f.zip
TESTBED: Improve some TTS tests
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/speech.cpp6
1 files changed, 5 insertions, 1 deletions
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);