aboutsummaryrefslogtreecommitdiff
path: root/test/test-options-util.js
diff options
context:
space:
mode:
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,