summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeremy Whiting <jpwhiting@kde.org>2015-05-05 17:35:46 -0600
committerJeremy Whiting <jpwhiting@kde.org>2015-05-07 21:18:09 +0000
commitc941a4a0fd1f63216defe7bca7c71ed06d0915be (patch)
tree4797886b00788f041e20cfb66e2a5487e560104d /tests
parent719a72a9c256dca8b0f1cad1d2f7db9d37a34d33 (diff)
Re-enable rate test checking value.
Also fix for loop for pitch test. Change-Id: I2d07be4f219fc287163a21f7c370b70de780d97e Reviewed-by: Laurent Montel <laurent.montel@kdab.com> Reviewed-by: Peter Bouda <pbouda@cidles.eu> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/texttospeech/tst_qtexttospeech.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/texttospeech/tst_qtexttospeech.cpp b/tests/auto/texttospeech/tst_qtexttospeech.cpp
index 989584e..71de089 100644
--- a/tests/auto/texttospeech/tst_qtexttospeech.cpp
+++ b/tests/auto/texttospeech/tst_qtexttospeech.cpp
@@ -68,7 +68,7 @@ void tst_QTextToSpeech::speech_rate()
QTextToSpeech tts;
tts.setRate(0.5);
QCOMPARE(tts.state(), QTextToSpeech::Ready);
-// QCOMPARE(tts.rate(), 0.0); FIXME not implemented yet
+ QCOMPARE(tts.rate(), 0.5);
qint64 lastTime = 0;
// check that speaking at slower rate takes more time (for 0.5, 0.0, -0.5)
@@ -90,7 +90,7 @@ void tst_QTextToSpeech::speech_rate()
void tst_QTextToSpeech::pitch()
{
QTextToSpeech tts;
- for (int i = -10; ++i; i <= 10) {
+ for (int i = -10; i <= 10; ++i) {
tts.setPitch(i / 10.0);
QCOMPARE(tts.pitch(), i / 10.0);
}