summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-24 14:49:06 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-24 15:23:17 +0200
commita5715efb9ff6f659e3a3dfd95b06f6b429771558 (patch)
tree6c3371903b4cdc1c45f74deb757de32e9ae39740 /tests
parent434d7b954ea0ce6754577caa79bcb6fe627c10d0 (diff)
Test clean-up: we don't need to quote the keys of a map
Change-Id: Ie4c32de764686bf0cf083ab0ad4aa20da4a53203 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtexttospeech_qml/tst_texttospeech.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/qtexttospeech_qml/tst_texttospeech.qml b/tests/auto/qtexttospeech_qml/tst_texttospeech.qml
index f687bc3..5c66c81 100644
--- a/tests/auto/qtexttospeech_qml/tst_texttospeech.qml
+++ b/tests/auto/qtexttospeech_qml/tst_texttospeech.qml
@@ -52,24 +52,24 @@ TestCase {
}
function test_findVoices() {
- let bob = tts.findVoices({"name":"Bob"})
+ let bob = tts.findVoices({name: "Bob"})
compare(bob.length, 1)
- let women = tts.findVoices({"gender":Voice.Female})
+ let women = tts.findVoices({gender: Voice.Female})
compare(women.length, 5)
- let children = tts.findVoices({"age":Voice.Child})
+ let children = tts.findVoices({age: Voice.Child})
compare(children.length, 1)
// includes all english speakers, no matter where they're from
- let english = tts.findVoices({"language":Qt.locale("en")})
+ let english = tts.findVoices({language: Qt.locale("en")})
compare(english.length, 4)
- let bokmalers = tts.findVoices({"locale":Qt.locale("NO")})
+ let bokmalers = tts.findVoices({locale: Qt.locale("NO")})
compare(bokmalers.length, 2)
- let nynorskers = tts.findVoices({"locale":Qt.locale("nn-NO")})
+ let nynorskers = tts.findVoices({locale: Qt.locale("nn-NO")})
compare(nynorskers.length, 2)
let englishWomen = tts.findVoices({
- "language": Qt.locale("en"),
- "gender": Voice.Female,
- "age": Voice.Adult
+ language: Qt.locale("en"),
+ gender: Voice.Female,
+ age: Voice.Adult
});
compare(englishWomen.length, 1)
}