summaryrefslogtreecommitdiff
path: root/test/test-options-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-30 12:41:19 -0400
committerGitHub <noreply@github.com>2021-05-30 12:41:19 -0400
commitcca01e85a35576225661699a7be63550e9500642 (patch)
treede52f621afa61afd6df2fdc6c91286e9247574ff /test/test-options-util.js
parentefd35de67f6700ecf4f49a87d310d99cefbaa328 (diff)
Improve multiple audio sources (#1718)
* Add url/voice options to audio sources * Add help for TTS * Remove old settings * Update tests * Update use of audio source URL * Improve labels for sources with the same type
Diffstat (limited to 'test/test-options-util.js')
-rw-r--r--test/test-options-util.js26
1 files changed, 20 insertions, 6 deletions
diff --git a/test/test-options-util.js b/test/test-options-util.js
index 80f935d1..d20eec3e 100644
--- a/test/test-options-util.js
+++ b/test/test-options-util.js
@@ -104,11 +104,11 @@ function createProfileOptionsTestData1() {
},
audio: {
enabled: true,
- sources: ['jpod101'],
+ sources: ['jpod101', 'text-to-speech', 'custom'],
volume: 100,
autoPlay: false,
customSourceUrl: 'http://localhost/audio.mp3?term={expression}&reading={reading}',
- textToSpeechVoice: ''
+ textToSpeechVoice: 'example-voice'
},
scanning: {
middleMouse: true,
@@ -306,11 +306,25 @@ function createProfileOptionsUpdatedTestData1() {
},
audio: {
enabled: true,
- sources: ['jpod101'],
+ sources: [
+ {
+ type: 'jpod101',
+ url: '',
+ voice: ''
+ },
+ {
+ type: 'text-to-speech',
+ url: '',
+ voice: 'example-voice'
+ },
+ {
+ type: 'custom',
+ url: 'http://localhost/audio.mp3?term={term}&reading={reading}',
+ voice: ''
+ }
+ ],
volume: 100,
- autoPlay: false,
- customSourceUrl: 'http://localhost/audio.mp3?term={term}&reading={reading}',
- textToSpeechVoice: ''
+ autoPlay: false
},
scanning: {
touchInputEnabled: true,