aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-02 13:33:25 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitfb12e3b36b4db7118fccfdff79f450c69bcf9b2f (patch)
tree21d3037bad3d9bb0f2d1ccac81ca44a3ff2d6f87 /engines/testbed
parent4bae32ffe7952ca967b16c8043c1957e9a3379b2 (diff)
downloadscummvm-rg350-fb12e3b36b4db7118fccfdff79f450c69bcf9b2f.tar.gz
scummvm-rg350-fb12e3b36b4db7118fccfdff79f450c69bcf9b2f.tar.bz2
scummvm-rg350-fb12e3b36b4db7118fccfdff79f450c69bcf9b2f.zip
TESTBED: Rewrite parts of TTS tests.
As suggested by Criezy on github
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/speech.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/testbed/speech.cpp b/engines/testbed/speech.cpp
index 266b8f7d8a..bca6ad76f3 100644
--- a/engines/testbed/speech.cpp
+++ b/engines/testbed/speech.cpp
@@ -85,7 +85,8 @@ TestExitStatus Speechtests::testFemale() {
Common::Array<int> femaleVoices = ttsMan->getVoiceIndicesByGender(Common::TTSVoice::FEMALE);
if (femaleVoices.size() == 0) {
- Testsuite::displayMessage("No female voice available");
+ Testsuite::logDetailedPrintf("Female TTS failed\n");
+ return kTestFailed;
}
ttsMan->setVoice(femaleVoices[0]);
ttsMan->say("Testing text to speech with female voice.");
@@ -165,7 +166,7 @@ TestExitStatus Speechtests::testPauseResume() {
Testsuite::logDetailedPrintf("TTS pause failed\n");
return kTestFailed;
}
- g_system->delayMillis(2000);
+ g_system->delayMillis(1000);
if (!ttsMan->isPaused()) {
Testsuite::logDetailedPrintf("TTS pause failed\n");
return kTestFailed;
@@ -384,7 +385,7 @@ TestExitStatus Speechtests::testInterrupting() {
ttsMan->setPitch(0);
ttsMan->setVoice(0);
Testsuite::clearScreen();
- Common::String info = "Text to speech interrupt test. You should expect a voice to start saying english alphabet and after about a second it should get interrupted and say: \"Speech intprrupted\" instead.";
+ Common::String info = "Text to speech interrupt test. You should expect a voice to start saying english alphabet and after about a second it should get interrupted and say: \"Speech interrupted\" instead.";
Common::Point pt(0, 100);
Testsuite::writeOnScreen("Testing TTS interrupt", pt);