From a5715efb9ff6f659e3a3dfd95b06f6b429771558 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 24 May 2023 14:49:06 +0200 Subject: Test clean-up: we don't need to quote the keys of a map Change-Id: Ie4c32de764686bf0cf083ab0ad4aa20da4a53203 Reviewed-by: Fabian Kosmale --- tests/auto/qtexttospeech_qml/tst_texttospeech.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests') 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) } -- cgit v1.2.3