summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2014-11-12 18:07:12 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-02-14 13:19:00 +0000
commit7093e000ee0f2b884340a18641ed12c5e57a21f7 (patch)
treee72a17a4be47ea994c75632ef1821de4a67be22f /tests
parent30c5591f914d91c5eb32ab5f0ae5cc7ae1fac8d3 (diff)
Implement pitch on OS X
Change-Id: I8605ed8b7fffb379781a4e2ad445f16a29cc8fc0 Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/texttospeech/tst_qtexttospeech.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/texttospeech/tst_qtexttospeech.cpp b/tests/auto/texttospeech/tst_qtexttospeech.cpp
index 49ecc59..989584e 100644
--- a/tests/auto/texttospeech/tst_qtexttospeech.cpp
+++ b/tests/auto/texttospeech/tst_qtexttospeech.cpp
@@ -42,6 +42,7 @@ class tst_QTextToSpeech : public QObject
private slots:
void say_hello();
void speech_rate();
+ void pitch();
};
@@ -86,5 +87,14 @@ void tst_QTextToSpeech::speech_rate()
}
}
+void tst_QTextToSpeech::pitch()
+{
+ QTextToSpeech tts;
+ for (int i = -10; ++i; i <= 10) {
+ tts.setPitch(i / 10.0);
+ QCOMPARE(tts.pitch(), i / 10.0);
+ }
+}
+
QTEST_MAIN(tst_QTextToSpeech)
#include "tst_qtexttospeech.moc"